mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Save reference to deleted entries in deletedObject list.
This commit is contained in:
parent
1fc5f7a69f
commit
258af265c7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user