summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/group.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/options/group.cpp b/options/group.cpp
index 964ad791..2d5588a1 100644
--- a/options/group.cpp
+++ b/options/group.cpp
@@ -62,7 +62,8 @@ void group::put(const QString &s, const QVariant &d)
bool group::contains(const QString &s) const
{
- return kvs.find(s) != kvs.cend();
+ const auto it = kvs.find(s);
+ return it != kvs.cend() && it->second != QVariant::Invalid;
}
bool group::is_portable_installation()