diff options
author | Felix Geyer <debfx@fobos.de> | 2013-03-22 23:57:18 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2013-03-24 17:00:23 +0400 |
commit | c7593a30472ce336c5e5ecd864c046ad50e1e3f2 (patch) | |
tree | a462ce10a151bd4c30d037d1bcd58aefae20fb0a /tests/TestGroupModel.cpp | |
parent | 72d17c045f56b872144438f5fde928e7ee59c607 (diff) |
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.
Diffstat (limited to 'tests/TestGroupModel.cpp')
-rw-r--r-- | tests/TestGroupModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestGroupModel.cpp b/tests/TestGroupModel.cpp index 12a806a7c..453aa145c 100644 --- a/tests/TestGroupModel.cpp +++ b/tests/TestGroupModel.cpp @@ -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()); |