mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-29 01:06:27 -05:00
Change Entry::clone() to set a random uuid.
This commit is contained in:
parent
b055780984
commit
be288d26ca
@ -436,7 +436,7 @@ Entry* Entry::clone() const
|
|||||||
{
|
{
|
||||||
Entry* entry = new Entry();
|
Entry* entry = new Entry();
|
||||||
entry->setUpdateTimeinfo(false);
|
entry->setUpdateTimeinfo(false);
|
||||||
entry->m_uuid = m_uuid;
|
entry->m_uuid = Uuid::random();
|
||||||
entry->m_data = m_data;
|
entry->m_data = m_data;
|
||||||
entry->m_attributes->copyDataFrom(m_attributes);
|
entry->m_attributes->copyDataFrom(m_attributes);
|
||||||
entry->m_attachments->copyDataFrom(m_attachments);
|
entry->m_attachments->copyDataFrom(m_attachments);
|
||||||
|
@ -222,7 +222,6 @@ void DatabaseWidget::cloneEntry()
|
|||||||
}
|
}
|
||||||
|
|
||||||
Entry* entry = currentEntry->clone();
|
Entry* entry = currentEntry->clone();
|
||||||
entry->setUuid(Uuid::random());
|
|
||||||
entry->setGroup(currentEntry->group());
|
entry->setGroup(currentEntry->group());
|
||||||
m_entryView->setFocus();
|
m_entryView->setFocus();
|
||||||
m_entryView->setCurrentEntry(entry);
|
m_entryView->setCurrentEntry(entry);
|
||||||
|
Loading…
Reference in New Issue
Block a user