- fix: "delete and exit" button in the environtment / page option page doesn't work correctly

This commit is contained in:
Roy Qu 2022-01-09 21:54:59 +08:00
parent 2204ac8ea1
commit 7fa4b072d0
2 changed files with 8 additions and 6 deletions

View File

@ -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 Red Panda C++ Version 0.13.1
- enhancement: suppoort localization info in project templates - enhancement: suppoort localization info in project templates
- change: template / project files use utf-8 encoding instead of ANSI - change: template / project files use utf-8 encoding instead of ANSI

View File

@ -156,6 +156,11 @@ PSettingsDialog SettingsDialog::optionDialog()
widget->init(); widget->init();
dialog->addWidget(widget); dialog->addWidget(widget);
connect((EnvironmentFoldersWidget*)widget,
&EnvironmentFoldersWidget::shouldQuitApp,
dialog.get(),
&SettingsDialog::closeAndQuit);
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
widget = new EnvironmentProgramsWidget(tr("Terminal"),tr("Environment")); widget = new EnvironmentProgramsWidget(tr("Terminal"),tr("Environment"));
widget->init(); widget->init();
@ -166,12 +171,6 @@ PSettingsDialog SettingsDialog::optionDialog()
widget->init(); widget->init();
dialog->addWidget(widget); dialog->addWidget(widget);
connect((EnvironmentFoldersWidget*)widget,
&EnvironmentFoldersWidget::shouldQuitApp,
dialog.get(),
&SettingsDialog::closeAndQuit,
Qt::QueuedConnection);
widget = new CompilerSetOptionWidget(tr("Compiler Set"),tr("Compiler")); widget = new CompilerSetOptionWidget(tr("Compiler Set"),tr("Compiler"));
widget->init(); widget->init();
dialog->addWidget(widget); dialog->addWidget(widget);