History

Update main window to quit app when closed

Ryan Huffman committed 11 years ago

Commit 4d34ba71 parent fe482b32 files · +5 −0Browse files

Showing the changes to interface/src/MainWindow.cpp (1 of 2 files). Show all

Unified · Split

interface/src/MainWindow.cpp+4−0
@@ -55,6 +55,10 @@ void MainWindow::saveGeometry() { · 54 unmodified lines
5555 }
5656 }
5757
58+void MainWindow::closeEvent(QCloseEvent* event) {
59+ qApp->quit();
60+}
61+
5862 void MainWindow::moveEvent(QMoveEvent* event) {
5963 emit windowGeometryChanged(QRect(event->pos(), size()));
6064 QMainWindow::moveEvent(event);