Change Entry::clone() to set a random uuid.
This commit is contained in:
@@ -436,7 +436,7 @@ Entry* Entry::clone() const
|
||||
{
|
||||
Entry* entry = new Entry();
|
||||
entry->setUpdateTimeinfo(false);
|
||||
entry->m_uuid = m_uuid;
|
||||
entry->m_uuid = Uuid::random();
|
||||
entry->m_data = m_data;
|
||||
entry->m_attributes->copyDataFrom(m_attributes);
|
||||
entry->m_attachments->copyDataFrom(m_attachments);
|
||||
|
||||
@@ -222,7 +222,6 @@ void DatabaseWidget::cloneEntry()
|
||||
}
|
||||
|
||||
Entry* entry = currentEntry->clone();
|
||||
entry->setUuid(Uuid::random());
|
||||
entry->setGroup(currentEntry->group());
|
||||
m_entryView->setFocus();
|
||||
m_entryView->setCurrentEntry(entry);
|
||||
|
||||
Reference in New Issue
Block a user