Browse Source

Fix wrong conversion to QVariant

It was converted to bool-like type which is wrong.
adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
6f4a9390ba
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/optionsdialog.cpp

2
src/gui/optionsdialog.cpp

@ -1638,7 +1638,7 @@ void OptionsDialog::setLocale(const QString &localeStr) @@ -1638,7 +1638,7 @@ void OptionsDialog::setLocale(const QString &localeStr)
if (index < 0)
{
// 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);
}
m_ui->comboI18n->setCurrentIndex(index);

Loading…
Cancel
Save