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

This commit is contained in:
chaoticgd 2024-10-22 01:14:12 +01:00 committed by Ty
parent 7d63a9e51c
commit 6d3d5ebdc5
1 changed files with 4 additions and 3 deletions

View File

@ -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++;