diff options
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r-- | qt-ui/preferences.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index cb24ec33a..a35675690 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -399,8 +399,7 @@ void PreferencesDialog::on_resetSettings_clicked() if (result == QMessageBox::Ok) { prefs = default_prefs; setUiFromPrefs(); - QStringList keys = s.allKeys(); - Q_FOREACH (QString key, keys) { + Q_FOREACH (QString key, s.allKeys()) { s.remove(key); } syncSettings(); |