diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2016-11-25 21:14:52 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2016-11-26 19:37:04 +0100 |
| commit | 8dfa79ec58898a1b9522d1f2e86a73aab346319f (patch) | |
| tree | 14418a1f0c6a4701a6f8bd15d21762c94e12b1a6 /main.cpp | |
| parent | 7876957b484580fcf3d3d9224e6b7f3b165025f4 (diff) | |
| download | monzero-gui-8dfa79ec58898a1b9522d1f2e86a73aab346319f.tar.gz monzero-gui-8dfa79ec58898a1b9522d1f2e86a73aab346319f.tar.xz monzero-gui-8dfa79ec58898a1b9522d1f2e86a73aab346319f.zip | |
Shutdown daemon and close wallet properly on app exit
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -31,6 +31,7 @@ #include <QtQml> #include <QStandardPaths> #include <QDebug> +#include <QObject> #include "clipboardAdapter.h" #include "filter.h" #include "oscursor.h" @@ -110,6 +111,13 @@ int main(int argc, char *argv[]) engine.rootContext()->setContextProperty("daemonManager", DaemonManager::instance(QCoreApplication::arguments())); + DaemonManager * daemonManager = DaemonManager::instance(QCoreApplication::arguments()); + QObject::connect(&app, SIGNAL(aboutToQuit()), daemonManager, SLOT(closing())); + engine.rootContext()->setContextProperty("daemonManager", daemonManager); + + +>>>>>>> cc05e1a... Shutdown daemon and close wallet properly on app exit + // export to QML monero accounts root directory // wizard is talking about where // to save the wallet file (.keys, .bin), they have to be user-accessible for |
