Qt: Fix global string list setting not showing in input profiles

This commit is contained in:
Connor McLaughlin 2022-12-20 23:21:11 +10:00 committed by lightningterror
parent 749f225562
commit 3f4f9ad5f1
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ void ControllerCustomSettingsWidget::createSettingWidgets(const char* translatio
else if (si.options) else if (si.options)
{ {
for (u32 i = 0; si.options[i] != nullptr; i++) for (u32 i = 0; si.options[i] != nullptr; i++)
cb->addItem(qApp->translate(translation_ctx, si.options[i])); cb->addItem(qApp->translate(translation_ctx, si.options[i]), QString::fromUtf8(si.options[i]));
} }
SettingWidgetBinder::BindWidgetToStringSetting(sif, cb, m_config_section, std::move(key_name), si.StringDefaultValue()); SettingWidgetBinder::BindWidgetToStringSetting(sif, cb, m_config_section, std::move(key_name), si.StringDefaultValue());
layout->addWidget(new QLabel(qApp->translate(translation_ctx, si.display_name), widget_parent), current_row, 0); layout->addWidget(new QLabel(qApp->translate(translation_ctx, si.display_name), widget_parent), current_row, 0);