mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-25 01:03:35 -05:00
Save reference to deleted entries in deletedObject list.
This commit is contained in:
parent
1fc5f7a69f
commit
258af265c7
1 changed files with 4 additions and 0 deletions
|
|
@ -347,6 +347,10 @@ void Group::removeEntry(Entry* entry)
|
||||||
entry->disconnect(this);
|
entry->disconnect(this);
|
||||||
if (m_db) {
|
if (m_db) {
|
||||||
entry->disconnect(m_db);
|
entry->disconnect(m_db);
|
||||||
|
DeletedObject delObject;
|
||||||
|
delObject.deletionTime = QDateTime::currentDateTimeUtc();
|
||||||
|
delObject.uuid = entry->uuid();
|
||||||
|
m_db->addDeletedObject(delObject);
|
||||||
}
|
}
|
||||||
m_entries.removeAll(entry);
|
m_entries.removeAll(entry);
|
||||||
Q_EMIT modified();
|
Q_EMIT modified();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue