Browse Source

Fix finding 'English' item in language dropdown menu when an unrecognized locale is requested. Closes #6109.

adaptive-webui-19844
sledgehammer999 8 years ago
parent
commit
7d7f82ae46
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 2
      src/gui/optionsdlg.cpp

2
src/gui/optionsdlg.cpp

@ -1311,7 +1311,7 @@ void OptionsDialog::setLocale(const QString &localeStr) @@ -1311,7 +1311,7 @@ void OptionsDialog::setLocale(const QString &localeStr)
}
if (index < 0) {
// Unrecognized, use US English
index = m_ui->comboI18n->findData(QLocale("en").name(), Qt::UserRole);
index = m_ui->comboI18n->findData("en", Qt::UserRole);
Q_ASSERT(index >= 0);
}
m_ui->comboI18n->setCurrentIndex(index);

Loading…
Cancel
Save