mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 11:49:01 +03:00
Fix wrong conversion to QVariant
It was converted to bool-like type which is wrong.
This commit is contained in:
parent
0eb6967bb2
commit
6f4a9390ba
1 changed files with 1 additions and 1 deletions
|
@ -1638,7 +1638,7 @@ void OptionsDialog::setLocale(const QString &localeStr)
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
// Unrecognized, use US English
|
// Unrecognized, use US English
|
||||||
index = m_ui->comboI18n->findData(u"en", Qt::UserRole);
|
index = m_ui->comboI18n->findData(u"en"_qs, Qt::UserRole);
|
||||||
Q_ASSERT(index >= 0);
|
Q_ASSERT(index >= 0);
|
||||||
}
|
}
|
||||||
m_ui->comboI18n->setCurrentIndex(index);
|
m_ui->comboI18n->setCurrentIndex(index);
|
||||||
|
|
Loading…
Reference in a new issue