diff options
author | Lieven Hey <lieven.hey@kdab.com> | 2021-05-20 12:29:04 +0200 |
---|---|---|
committer | Lieven Hey <lieven.hey@kdab.com> | 2021-05-25 09:35:18 +0200 |
commit | b3dc879e8b108c26c929bfbe551bcdf77f140e94 (patch) | |
tree | 0c365aa7953c2f488009c7add3ddcf6aae24f205 /autotests/kconfigtest.cpp | |
parent | af6982ba361b7b5b11c732d2f7286801e0391d51 (diff) | |
download | kconfig-b3dc879e8b108c26c929bfbe551bcdf77f140e94.tar.gz kconfig-b3dc879e8b108c26c929bfbe551bcdf77f140e94.tar.bz2 |
fix deleted group is in listGroups
calling deleteGroup only deletes all entries but the group does still
exists in listGroups
this is somewhat irritating since calling exists on that group will
return false
with this patch the group does no longer exists in listGroup
Diffstat (limited to 'autotests/kconfigtest.cpp')
-rw-r--r-- | autotests/kconfigtest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp index bf7882f0..e6a3e645 100644 --- a/autotests/kconfigtest.cpp +++ b/autotests/kconfigtest.cpp @@ -802,7 +802,7 @@ void KConfigTest::testDelete() delgr.deleteGroup(); QVERIFY(!delgr.exists()); QVERIFY(!ct.hasGroup("Nested Group 3")); - QVERIFY(ct.groupList().contains(QStringLiteral("Nested Group 3"))); + QVERIFY(!ct.groupList().contains(QStringLiteral("Nested Group 3"))); KConfigGroup ng(&ct, "Nested Group 2"); QVERIFY(sc.hasGroup("Complex Types")); |