X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsettings.cpp;fp=src%2Fcommon%2Fsettings.cpp;h=6273f7c7400c70c09de1fe5dad23ac8068f8be68;hp=2d79ffe3767bf0c269f8665fc8b5e2847e211d17;hb=ebe555951f043ac230149436fb15627120da945e;hpb=da1a6f40b28d65e5b6a5a03e62f9b2604c3f00a7 diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 2d79ffe3..6273f7c7 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -207,9 +207,8 @@ const QVariant &Settings::localValue(const QString &key, const QVariant &def) bool Settings::localKeyExists(const QString &key) { QString normKey = normalizedKey(group, key); - if (isCached(normKey)) - return true; - + // Do NOT check the cache as default values get cached, too. Otherwise loading a setting once + // will mark it as existing in settings, even when it only exists in cache (and not on disk). create_qsettings; return s.contains(normKey); }