[PATCH 2 of 2] (Issue27) Close the app on close event

Wald Commits scm-commit at wald.intevation.org
Tue Jul 1 12:14:16 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# 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
      *


More information about the Trustbridge-commits mailing list