diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 06:26:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 06:26:17 +0200 |
commit | 957a2bf95fed2362d50de64721642dbc0bd8f911 (patch) | |
tree | 452d6d3f2d2c650cf463b278a1cd13729ea1295c /options/group.cpp | |
parent | 1f6ca4d1ded3146f1e358007528d9f1ab2b522ec (diff) |
options, migration: simplify
Diffstat (limited to 'options/group.cpp')
-rw-r--r-- | options/group.cpp | 3 |
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() |