mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-12 08:20:46 -04:00
Fix case of incorrect update to a Group's LastModificationTime
This commit is contained in:
parent
0d3a3e9df8
commit
2a287f6884
1 changed files with 5 additions and 0 deletions
|
@ -1074,7 +1074,12 @@ void Group::cleanupParent()
|
||||||
if (m_parent) {
|
if (m_parent) {
|
||||||
emit groupAboutToRemove(this);
|
emit groupAboutToRemove(this);
|
||||||
m_parent->m_children.removeAll(this);
|
m_parent->m_children.removeAll(this);
|
||||||
|
|
||||||
|
bool prevUpdateTimeinfo = m_updateTimeinfo;
|
||||||
|
m_updateTimeinfo = false; // prevent update of LastModificationTime
|
||||||
emitModified();
|
emitModified();
|
||||||
|
m_updateTimeinfo = prevUpdateTimeinfo;
|
||||||
|
|
||||||
emit groupRemoved();
|
emit groupRemoved();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue