confirm daemon running on exit

This commit is contained in:
Jaquee
2017-03-01 22:03:50 +01:00
parent 988e299290
commit bce496b8d1
6 changed files with 76 additions and 4 deletions

14
MainApp.cpp Normal file
View File

@@ -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;
}