mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 03:57:25 -04:00
confirm daemon running on exit
This commit is contained in:
14
MainApp.cpp
Normal file
14
MainApp.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user