From cdcf525157b7ddbd99f5fa7f19962f12e1612f93 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Tue, 21 Mar 2023 17:11:12 +0800 Subject: [PATCH] - fix: The option "Open CPU info dialog when signal received" can't be correctly set in the options dialog's debugger page. --- RedPandaIDE/settingsdialog/debuggeneralwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RedPandaIDE/settingsdialog/debuggeneralwidget.cpp b/RedPandaIDE/settingsdialog/debuggeneralwidget.cpp index c0847dfe..9fe09e58 100644 --- a/RedPandaIDE/settingsdialog/debuggeneralwidget.cpp +++ b/RedPandaIDE/settingsdialog/debuggeneralwidget.cpp @@ -66,7 +66,7 @@ void DebugGeneralWidget::doSave() pSettings->debugger().setFontSize(ui->sbFontSize->value()); pSettings->debugger().setEnableDebugConsole(ui->grpEnableDebugConsole->isChecked()); pSettings->debugger().setShowDetailLog(ui->chkShowDetailLog->isChecked()); - pSettings->debugger().setOpenCPUInfoWhenSignaled(ui->chkShowCPUWhenSignaled); + pSettings->debugger().setOpenCPUInfoWhenSignaled(ui->chkShowCPUWhenSignaled->isChecked()); pSettings->debugger().setUseIntelStyle(ui->rbIntel->isChecked()); pSettings->debugger().setBlendMode(ui->chkBlendMode->isChecked()); pSettings->debugger().setSkipSystemLibraries(ui->chkSkipSystemLib->isChecked()); @@ -77,6 +77,7 @@ void DebugGeneralWidget::doSave() pSettings->debugger().setUseGDBServer(ui->grpUseGDBServer->isChecked()); #endif pSettings->debugger().setGDBServerPort(ui->spinGDBServerPort->value()); + pSettings->debugger().setMemoryViewRows(ui->spinMemoryViewRows->value()); pSettings->debugger().setMemoryViewColumns(ui->spinMemoryViewColumns->value()); pSettings->debugger().setArrayElements(ui->spinArrayElements->value());