Save reference to deleted entries in deletedObject list.

This commit is contained in:
Florian Geyer 2012-04-19 17:17:44 +02:00 committed by Felix Geyer
parent 1fc5f7a69f
commit 258af265c7

View File

@ -347,6 +347,10 @@ void Group::removeEntry(Entry* entry)
entry->disconnect(this);
if (m_db) {
entry->disconnect(m_db);
DeletedObject delObject;
delObject.deletionTime = QDateTime::currentDateTimeUtc();
delObject.uuid = entry->uuid();
m_db->addDeletedObject(delObject);
}
m_entries.removeAll(entry);
Q_EMIT modified();