Skip to content

Commit 7cfa440

Browse files
committed
gui: close all dialogs on exit
Fixes #8251 Signed-off-by: Matt Liberty <[email protected]>
1 parent 28e3c29 commit 7cfa440

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/gui/src/mainWindow.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,12 @@ void MainWindow::closeEvent(QCloseEvent* event)
16971697
exit_check.exec();
16981698

16991699
if (exit_check.clickedButton() == exit_button) {
1700+
// close all dialogs
1701+
for (QWidget* w : QApplication::topLevelWidgets()) {
1702+
if (w != this) {
1703+
w->close();
1704+
}
1705+
}
17001706
// exit selected so go ahead and close
17011707
event->accept();
17021708
} else if (exit_check.clickedButton() == hide_button) {

0 commit comments

Comments
 (0)