Mercurial > trustbridge
changeset 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 | 248d4f24e618 |
children | 973a7ce19658 |
files | ui/mainwindow.h |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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 *