mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix symbol sources list in per-game settings dialog
This commit is contained in:
parent
7d63a9e51c
commit
6d3d5ebdc5
|
@ -261,11 +261,11 @@ void DebugAnalysisSettingsWidget::setupSymbolSourceGrid()
|
||||||
|
|
||||||
void DebugAnalysisSettingsWidget::symbolSourceCheckStateChanged()
|
void DebugAnalysisSettingsWidget::symbolSourceCheckStateChanged()
|
||||||
{
|
{
|
||||||
QComboBox* combo_box = qobject_cast<QComboBox*>(sender());
|
QCheckBox* check_box = qobject_cast<QCheckBox*>(sender());
|
||||||
if (!combo_box)
|
if (!check_box)
|
||||||
return;
|
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())
|
if (temp == m_symbol_sources.end())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -311,6 +311,7 @@ void DebugAnalysisSettingsWidget::saveSymbolSources()
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
std::string section = "Debugger/Analysis/SymbolSources/" + std::to_string(i);
|
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());
|
sif->SetBoolValue(section.c_str(), "ClearDuringAnalysis", temp.check_box->isChecked());
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in New Issue