Qt: Fix symbol sources list in per-game settings dialog

This commit is contained in:
chaoticgd authored and Ty committed 2024-10-23 09:58:59 -04:00
1 parent 7d63a9e51c
commit 6d3d5ebdc5
1 file changed
+4 -3
@@ -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;
@@ -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++;