From 1ff3426627befc91b943745e0f009b5e88a281ff Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Sun, 14 Apr 2019 17:00:14 -0400 Subject: [PATCH] Cause the program to properly exit when the main window is closed. Previously sometimes other opened windows would persist and that was annoying and not the expected behavior. --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1471a72..15181e1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -200,7 +200,6 @@ MainWindow::~MainWindow() delete model; delete elapsedTime; delete dbcHandler; - } //kill every sub window that could be open. At the moment a hard coded list @@ -249,6 +248,7 @@ void MainWindow::killWindow(QDialog *win) void MainWindow::exitApp() { this->close(); + QApplication::quit(); //forces the whole application to terminate when the main window is closed } void MainWindow::closeEvent(QCloseEvent *event)