mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08: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
@ -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 New Issue
Block a user