diff options
-rw-r--r-- | qt-ui/models.cpp | 2 | ||||
-rw-r--r-- | qt-ui/preferences.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index d14aae2dd..c83fcb903 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1772,7 +1772,7 @@ QVariant LanguageModel::data(const QModelIndex& index, int role) const switch(role){ case Qt::DisplayRole:{ QLocale l( currentString.remove("subsurface_")); - return currentString == "English" ? currentString : l.countryToString(l.country()); + return currentString == "English" ? currentString : QString("%1 (%2)").arg(l.languageToString(l.language())).arg(l.countryToString(l.country())); }break; case Qt::UserRole:{ QString currentString = languages.at(index.row()); diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index 930a263a1..399d81dca 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -110,6 +110,7 @@ void PreferencesDialog::setUiFromPrefs() filterModel->setSourceModel(LanguageModel::instance()); filterModel->setFilterCaseSensitivity(Qt::CaseInsensitive); ui.languageView->setModel(filterModel); + filterModel->sort(0); connect(ui.languageFilter, SIGNAL(textChanged(QString)), filterModel, SLOT(setFilterFixedString(QString))); QSettings s; |