aboutsummaryrefslogtreecommitdiff
path: root/MainApp.cpp
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-03-01 22:03:50 +0100
committerJaquee <jaquee.monero@gmail.com>2017-03-03 15:40:42 +0100
commitbce496b8d13c6a303d8e20ffbf2497cf9e532430 (patch)
tree6fbcfddd78d4ac3f7abed58042dedadcf33351e5 /MainApp.cpp
parent988e2992907459bdba5d421a88e28760eb205557 (diff)
downloadmonzero-gui-bce496b8d13c6a303d8e20ffbf2497cf9e532430.tar.gz
monzero-gui-bce496b8d13c6a303d8e20ffbf2497cf9e532430.tar.xz
monzero-gui-bce496b8d13c6a303d8e20ffbf2497cf9e532430.zip
confirm daemon running on exit
Diffstat (limited to 'MainApp.cpp')
-rw-r--r--MainApp.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/MainApp.cpp b/MainApp.cpp
new file mode 100644
index 00000000..4c10cad0
--- /dev/null
+++ b/MainApp.cpp
@@ -0,0 +1,14 @@
+#include "MainApp.h"
+#include <QCloseEvent>
+
+bool MainApp::event (QEvent *event)
+{
+ // Catch application exit event and signal to qml app to handle exit
+ if(event->type() == QEvent::Close) {
+ event->ignore();
+ emit closing();
+ return true;
+ }
+
+ return false;
+}