Change Entry::clone() to set a random uuid.

This commit is contained in:
Felix Geyer 2013-04-04 21:25:11 +02:00
parent b055780984
commit be288d26ca
2 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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);