diff --git a/src/ui/behavioursettingspage.cpp b/src/ui/behavioursettingspage.cpp index 340bd6fc3..f11a95cef 100644 --- a/src/ui/behavioursettingspage.cpp +++ b/src/ui/behavioursettingspage.cpp @@ -60,8 +60,7 @@ BehaviourSettingsPage::BehaviourSettingsPage(SettingsDialog* dialog) continue; QString code = lang_re.cap(1); - QString language_name; - language_name = QLocale::languageToString(QLocale(code).language()); + QString language_name = QLocale::languageToString(QLocale(code).language()); #if QT_VERSION >= 0x040800 QString native_name = QLocale(code).nativeLanguageName(); if (!native_name.isEmpty()) {