From 5cf07c7f91e5b877c4cfc2728f86a2fd89d97768 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Thu, 28 Sep 2023 16:26:56 -0400 Subject: [PATCH] Close new options windows on project open --- src/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 92fbb23f..2a3b2735 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2853,6 +2853,14 @@ void MainWindow::closeSupplementaryWindows() { delete this->shortcutsEditor; this->shortcutsEditor = nullptr; } + if (this->projectSettingsEditor) { + delete this->projectSettingsEditor; + this->projectSettingsEditor = nullptr; + } + if (this->customScriptsEditor) { + delete this->customScriptsEditor; + this->customScriptsEditor = nullptr; + } } void MainWindow::closeEvent(QCloseEvent *event) {