GUI: fixed handling of language in settings dialog (#6435)
This commit is contained in:
parent
ecb9d87e42
commit
fb58718ad1
|
@ -120,7 +120,7 @@ void SettingsDialog::InitTranslationsList()
|
|||
item->setText(translation.mName);
|
||||
item->setData(LangCodeRole, QVariant(translation.mCode));
|
||||
mUI.mListLanguages->addItem(item);
|
||||
if (translation.mCode == current)
|
||||
if (translation.mCode == current || translation.mCode == current.mid(0, 2))
|
||||
mUI.mListLanguages->setCurrentItem(item);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue