# HG changeset patch # User Andre Heinecke # Date 1404209650 -7200 # Node ID a2e94e88d3044cb47bdfa8c4c2c1f6b105cb4867 # Parent 248d4f24e618f4cec426aa3c91defc2ce35b4b7b (Issue27) Close the app on close event. diff -r 248d4f24e618 -r a2e94e88d304 ui/mainwindow.h --- a/ui/mainwindow.h Tue Jul 01 12:06:38 2014 +0200 +++ b/ui/mainwindow.h Tue Jul 01 12:14:10 2014 +0200 @@ -129,6 +129,9 @@ */ void loadUnselectedCertificates(); +protected: + virtual void closeEvent(QCloseEvent *event) {return closeApp();} + protected slots: /** @brief cleanup and close the main window *