diff --git a/pcsx2-qt/SettingWidgetBinder.h b/pcsx2-qt/SettingWidgetBinder.h index 1c5160531c..ff89287db6 100644 --- a/pcsx2-qt/SettingWidgetBinder.h +++ b/pcsx2-qt/SettingWidgetBinder.h @@ -120,7 +120,7 @@ namespace SettingWidgetBinder } static std::optional getNullableIntValue(const QComboBox* widget) { - return isNullValue(widget) ? std::nullopt : std::optional(widget->currentIndex() + 1); + return isNullValue(widget) ? std::nullopt : std::optional(widget->currentIndex() - 1); } static void setNullableIntValue(QComboBox* widget, std::optional value) { @@ -439,9 +439,9 @@ namespace SettingWidgetBinder else Accessor::setNullableIntValue(widget, std::nullopt); - Accessor::connectValueChanged(widget, [sif, widget, section = std::move(section), key = std::move(key)]() { + Accessor::connectValueChanged(widget, [sif, widget, section = std::move(section), key = std::move(key), option_offset]() { if (std::optional new_value = Accessor::getNullableIntValue(widget); new_value.has_value()) - sif->SetIntValue(section.c_str(), key.c_str(), new_value.value()); + sif->SetIntValue(section.c_str(), key.c_str(), new_value.value() + option_offset); else sif->DeleteValue(section.c_str(), key.c_str());