From 7fa4b072d07aaada3c8b623c93ac879340d19d8c Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 9 Jan 2022 21:54:59 +0800 Subject: [PATCH] - fix: "delete and exit" button in the environtment / page option page doesn't work correctly --- NEWS.md | 3 +++ RedPandaIDE/settingsdialog/settingsdialog.cpp | 11 +++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/NEWS.md b/NEWS.md index 25d7f3cd..1f4fbbd6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Red Panda C++ Version 0.13.2 + - fix: "delete and exit" button in the environtment / page option page doesn't work correctly + Red Panda C++ Version 0.13.1 - enhancement: suppoort localization info in project templates - change: template / project files use utf-8 encoding instead of ANSI diff --git a/RedPandaIDE/settingsdialog/settingsdialog.cpp b/RedPandaIDE/settingsdialog/settingsdialog.cpp index 3054924d..239d0e01 100644 --- a/RedPandaIDE/settingsdialog/settingsdialog.cpp +++ b/RedPandaIDE/settingsdialog/settingsdialog.cpp @@ -156,6 +156,11 @@ PSettingsDialog SettingsDialog::optionDialog() widget->init(); dialog->addWidget(widget); + connect((EnvironmentFoldersWidget*)widget, + &EnvironmentFoldersWidget::shouldQuitApp, + dialog.get(), + &SettingsDialog::closeAndQuit); + #ifdef Q_OS_LINUX widget = new EnvironmentProgramsWidget(tr("Terminal"),tr("Environment")); widget->init(); @@ -166,12 +171,6 @@ PSettingsDialog SettingsDialog::optionDialog() widget->init(); dialog->addWidget(widget); - connect((EnvironmentFoldersWidget*)widget, - &EnvironmentFoldersWidget::shouldQuitApp, - dialog.get(), - &SettingsDialog::closeAndQuit, - Qt::QueuedConnection); - widget = new CompilerSetOptionWidget(tr("Compiler Set"),tr("Compiler")); widget->init(); dialog->addWidget(widget);