diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-03-03 16:55:09 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-03-03 16:55:09 +0200 |
| commit | 5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5 (patch) | |
| tree | 9ecc492023fd92c80ae3cc6933ef7d983e9d5e9d /MainApp.cpp | |
| parent | 988e2992907459bdba5d421a88e28760eb205557 (diff) | |
| parent | 01e735cc0e56c1e68bea3618fbc0cccc7bf88a29 (diff) | |
| download | monzero-gui-5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5.tar.gz monzero-gui-5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5.tar.xz monzero-gui-5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5.zip | |
Merge pull request #515
01e735c move OK button to the right in confirm exit dialog (Jaquee)
bce496b confirm daemon running on exit (Jaquee)
Diffstat (limited to 'MainApp.cpp')
| -rw-r--r-- | MainApp.cpp | 14 |
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; +} |
