aboutsummaryrefslogtreecommitdiff
path: root/lib/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/settings.cpp')
-rw-r--r--lib/settings.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/settings.cpp b/lib/settings.cpp
index 5413693d..dd086d9c 100644
--- a/lib/settings.cpp
+++ b/lib/settings.cpp
@@ -53,11 +53,12 @@ bool Settings::contains(const QString& key) const
QStringList Settings::childGroups() const
{
- auto l = QSettings::childGroups();
- for (const auto& g: legacySettings.childGroups())
- if (!l.contains(g))
- l.push_back(g);
- return l;
+ auto groups = QSettings::childGroups();
+ const auto& legacyGroups = legacySettings.childGroups();
+ for (const auto& g: legacyGroups)
+ if (!groups.contains(g))
+ groups.push_back(g);
+ return groups;
}
void SettingsGroup::setValue(const QString& key, const QVariant& value)