From 7d7f82ae462416fecb7ef0373f9de2c54fdec829 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Thu, 19 Jan 2017 17:22:40 +0200 Subject: [PATCH] Fix finding 'English' item in language dropdown menu when an unrecognized locale is requested. Closes #6109. --- src/gui/optionsdlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/optionsdlg.cpp b/src/gui/optionsdlg.cpp index a3bde6b8c..871666724 100644 --- a/src/gui/optionsdlg.cpp +++ b/src/gui/optionsdlg.cpp @@ -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);