diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-12 15:43:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-12 15:48:16 +0200 |
commit | 4c4c783d023cf1bb6a8d7d883bf8d3384f7b7da1 (patch) | |
tree | eb81974538149ce053d923991eaeebe2a2da3d9e /options/group.cpp | |
parent | 8cb6d9d0a5aa617d0d9922ea26f0c98df27b5f1e (diff) |
minor fixes only
Diffstat (limited to 'options/group.cpp')
-rw-r--r-- | options/group.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/options/group.cpp b/options/group.cpp index 3f800ff0..60e8a7b4 100644 --- a/options/group.cpp +++ b/options/group.cpp @@ -30,7 +30,9 @@ group::group(const QString& name) : name(name) { auto tmp = k_.toUtf8(); QString k(tmp); - kvs[k] = conf.value(k_); + QVariant val = conf.value(k_); + if (val.type() != QVariant::Invalid) + kvs[k] = std::move(val); } conf.endGroup(); }); |