From 2f8988cf91e29df310c0d2f0ad2fb7184c258b96 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 22 Jul 2022 11:34:45 +0800 Subject: [PATCH] - fix: "Timeout for problem case" can't be rechecked, in the Settings Dialog -> executor -> problem set panel. --- NEWS.md | 1 + RedPandaIDE/settingsdialog/executorproblemsetwidget.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 77e56d47..7d4b5136 100644 --- a/NEWS.md +++ b/NEWS.md @@ -9,6 +9,7 @@ Red Panda C++ Version 1.1.5 - change: add Selection menu - enhancement: add memory view rows/columns settings in the settings dialog -> debugger -> general panel - enhancement: add "Go to Line..." in the Code menu + - fix: "Timeout for problem case" can't be rechecked, in the Settings Dialog -> executor -> problem set panel. Red Panda C++ Version 1.1.4 diff --git a/RedPandaIDE/settingsdialog/executorproblemsetwidget.cpp b/RedPandaIDE/settingsdialog/executorproblemsetwidget.cpp index c0182a94..1b0f4100 100644 --- a/RedPandaIDE/settingsdialog/executorproblemsetwidget.cpp +++ b/RedPandaIDE/settingsdialog/executorproblemsetwidget.cpp @@ -41,7 +41,8 @@ void ExecutorProblemSetWidget::doLoad() ui->cbFont->setCurrentFont(QFont(pSettings->executor().caseEditorFontName())); ui->spinFontSize->setValue(pSettings->executor().caseEditorFontSize()); ui->chkOnlyMonospaced->setChecked(pSettings->executor().caseEditorFontOnlyMonospaced()); - ui->grpEnableTimeout->setEnabled(pSettings->executor().enableCaseTimeout()); + ui->grpEnableTimeout->setChecked(pSettings->executor().enableCaseTimeout()); + ui->spinCaseTimeout->setValue(pSettings->executor().caseTimeout()); }