mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Handle deleting groups more consistently.
Delete the entries and child groups in Group dtor no what if the group has a database or not.
This commit is contained in:
@@ -40,7 +40,6 @@ Group::~Group()
|
||||
this->blockSignals(true);
|
||||
// Destroy entries and children manually so DeletedObjects can be added
|
||||
// to database.
|
||||
if (m_db && m_parent) {
|
||||
QList<Entry*> entries = m_entries;
|
||||
Q_FOREACH (Entry* entry, entries) {
|
||||
entry->blockSignals(true);
|
||||
@@ -53,6 +52,7 @@ Group::~Group()
|
||||
delete group;
|
||||
}
|
||||
|
||||
if (m_db && m_parent) {
|
||||
DeletedObject delGroup;
|
||||
delGroup.deletionTime = Tools::currentDateTimeUtc();
|
||||
delGroup.uuid = m_uuid;
|
||||
|
||||
Reference in New Issue
Block a user