mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-07 14:02:37 -04: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:
parent
72d17c045f
commit
c7593a3047
3 changed files with 8 additions and 10 deletions
|
@ -262,8 +262,8 @@ void TestGroup::testDeleteSignals()
|
|||
|
||||
delete groupChild;
|
||||
QVERIFY(groupRoot->children().isEmpty());
|
||||
QCOMPARE(spyAboutToRemove.count(), 1);
|
||||
QCOMPARE(spyRemoved.count(), 1);
|
||||
QCOMPARE(spyAboutToRemove.count(), 2);
|
||||
QCOMPARE(spyRemoved.count(), 2);
|
||||
delete db;
|
||||
|
||||
|
||||
|
@ -289,8 +289,8 @@ void TestGroup::testDeleteSignals()
|
|||
QSignalSpy spyEntryRemoved2(group2, SIGNAL(entryRemoved(Entry*)));
|
||||
|
||||
delete group2;
|
||||
QCOMPARE(spyEntryAboutToRemove2.count(), 0);
|
||||
QCOMPARE(spyEntryRemoved2.count(), 0);
|
||||
QCOMPARE(spyEntryAboutToRemove2.count(), 1);
|
||||
QCOMPARE(spyEntryRemoved2.count(), 1);
|
||||
delete db2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue