mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-16 13:11:36 +03:00
Fix finding 'English' item in language dropdown menu when an unrecognized locale is requested. Closes #6109.
This commit is contained in:
parent
fed325a54d
commit
7d7f82ae46
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue