diff --git a/app/main.cpp b/app/main.cpp index 14164fd21..f60faa79a 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -119,6 +119,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo MainWindow w(logger, parser); w.show(); + QObject::connect(&a, SIGNAL(aboutToQuit()), &w, SLOT(on_action_Exit_triggered())); return a.exec(); }