From bde285fc2fc9448aa889f60accf5fa0bca8a768d Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Mon, 1 Jul 2013 04:19:39 +0100 Subject: [PATCH] Select current language in language-chooser In the event that we're using a 'fallback' language, pre-select the actual currently-used language, rather than always dropping through to en_US --- src/utils/languagemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/languagemanager.cpp b/src/utils/languagemanager.cpp index af33792c..c5018b16 100644 --- a/src/utils/languagemanager.cpp +++ b/src/utils/languagemanager.cpp @@ -246,7 +246,7 @@ void LanguageManager::chooseNewLanguage() QStringList items; int defaultItem = -1; - QString current = currentLanguage(); + QString current = convertStringToLanguageFile(currentLanguage()); foreach (const QString &name, m_languages) { QLocale locale(name); QString string = QString(QLatin1String("%1, %2 (%3) %4"))