diff options
-rw-r--r-- | qt-ui/preferences.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index 4e71a0ef3..91a34a6ba 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -117,10 +117,10 @@ void PreferencesDialog::setUiFromPrefs() QSettings s; s.beginGroup("Language"); ui.languageSystemDefault->setChecked(s.value("UseSystemLanguage", true).toBool()); - QAbstractItemModel *m = ui.languageView->model(); - QModelIndexList languages = m->match( m->index(0,0), Qt::UserRole, s.value("UiLanguage").toString()); - if (languages.count()) - ui.languageView->setCurrentIndex(languages.first()); + QAbstractItemModel *m = ui.languageView->model(); + QModelIndexList languages = m->match( m->index(0,0), Qt::UserRole, s.value("UiLanguage").toString()); + if (languages.count()) + ui.languageView->setCurrentIndex(languages.first()); } void PreferencesDialog::restorePrefs() |