aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/theme/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/theme/theme.cpp')
-rw-r--r--src/libs/utils/theme/theme.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/theme/theme.cpp b/src/libs/utils/theme/theme.cpp
index 645550261f..15963f2a56 100644
--- a/src/libs/utils/theme/theme.cpp
+++ b/src/libs/utils/theme/theme.cpp
@@ -181,7 +181,8 @@ void Theme::readSettings(QSettings &settings)
}
{
settings.beginGroup(QLatin1String("Palette"));
- foreach (const QString &key, settings.allKeys())
+ const QStringList allKeys = settings.allKeys();
+ for (const QString &key : allKeys)
d->palette[key] = readNamedColor(settings.value(key).toString()).first;
settings.endGroup();
}