diff ui/mainwindow.h @ 686:a2e94e88d304

(Issue27) Close the app on close event.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 01 Jul 2014 12:14:10 +0200
parents 129e611eaf50
children e4abb41484a0
line wrap: on
line diff
--- 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
      *

http://wald.intevation.org/projects/trustbridge/