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.
This commit is contained in:
Collin Kidder
2019-04-14 17:00:14 -04:00
parent f08430c812
commit 1ff3426627
+1 -1
View File
@@ -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)