Fix case of incorrect update to a Group's LastModificationTime

This commit is contained in:
vuurvlieg 2024-03-25 21:54:23 +01:00
parent 0d3a3e9df8
commit 2a287f6884

View File

@ -1074,7 +1074,12 @@ void Group::cleanupParent()
if (m_parent) {
emit groupAboutToRemove(this);
m_parent->m_children.removeAll(this);
bool prevUpdateTimeinfo = m_updateTimeinfo;
m_updateTimeinfo = false; // prevent update of LastModificationTime
emitModified();
m_updateTimeinfo = prevUpdateTimeinfo;
emit groupRemoved();
}
}