Skip to content

Commit

Permalink
Qt: Fix symbol sources list in per-game settings dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoticgd authored and F0bes committed Oct 23, 2024
1 parent 7d63a9e commit 6d3d5eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pcsx2-qt/Settings/DebugAnalysisSettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ void DebugAnalysisSettingsWidget::setupSymbolSourceGrid()

void DebugAnalysisSettingsWidget::symbolSourceCheckStateChanged()
{
QComboBox* combo_box = qobject_cast<QComboBox*>(sender());
if (!combo_box)
QCheckBox* check_box = qobject_cast<QCheckBox*>(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;

Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 6d3d5eb

Please sign in to comment.