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);