mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Stop suppressing signals in Group dtor.
That way we emit entry/group removed signals. Move cleanupParent() call to the bottom so we maintain the group tree structure for objects that connect to those signals.
This commit is contained in:
@@ -135,8 +135,8 @@ void TestGroupModel::test()
|
||||
delete group12;
|
||||
QCOMPARE(spyAboutToAdd.count(), 1);
|
||||
QCOMPARE(spyAdded.count(), 1);
|
||||
QCOMPARE(spyAboutToRemove.count(), 1);
|
||||
QCOMPARE(spyRemoved.count(), 1);
|
||||
QCOMPARE(spyAboutToRemove.count(), 2);
|
||||
QCOMPARE(spyRemoved.count(), 2);
|
||||
QCOMPARE(spyAboutToMove.count(), 3);
|
||||
QCOMPARE(spyMoved.count(), 3);
|
||||
QVERIFY(!index12.isValid());
|
||||
|
||||
Reference in New Issue
Block a user