From 6d3d5ebdc5fce7f50314cf8db2d2c18b686b1775 Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Tue, 22 Oct 2024 01:14:12 +0100 Subject: [PATCH] Qt: Fix symbol sources list in per-game settings dialog --- pcsx2-qt/Settings/DebugAnalysisSettingsWidget.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcsx2-qt/Settings/DebugAnalysisSettingsWidget.cpp b/pcsx2-qt/Settings/DebugAnalysisSettingsWidget.cpp index 11ab07c3f6c10..2322bd18661e6 100644 --- a/pcsx2-qt/Settings/DebugAnalysisSettingsWidget.cpp +++ b/pcsx2-qt/Settings/DebugAnalysisSettingsWidget.cpp @@ -261,11 +261,11 @@ void DebugAnalysisSettingsWidget::setupSymbolSourceGrid() void DebugAnalysisSettingsWidget::symbolSourceCheckStateChanged() { - QComboBox* combo_box = qobject_cast(sender()); - if (!combo_box) + QCheckBox* check_box = qobject_cast(sender()); + if (!check_box) return; - auto temp = m_symbol_sources.find(combo_box->currentText().toStdString()); + auto temp = m_symbol_sources.find(check_box->text().toStdString()); if (temp == m_symbol_sources.end()) return; @@ -311,6 +311,7 @@ void DebugAnalysisSettingsWidget::saveSymbolSources() continue; std::string section = "Debugger/Analysis/SymbolSources/" + std::to_string(i); + sif->SetStringValue(section.c_str(), "Name", name.c_str()); sif->SetBoolValue(section.c_str(), "ClearDuringAnalysis", temp.check_box->isChecked()); i++;