summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-24 12:56:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-24 12:57:16 +0200
commitbc4cb51ccb27aaac1687e3e3255c7321e28d0a33 (patch)
tree4dfa6301dd9eae8791503e13059b14d95754de15 /gui/main-window.cpp
parent9762ccffa4df162d8574d76749d21d09b57c52ad (diff)
gui/main: put TerminateProcess call back after app exits
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r--gui/main-window.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index 8d0c005d..225d0629 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -309,6 +309,9 @@ bool MainWindow::get_new_config_name_from_dialog(QString& ret)
MainWindow::~MainWindow()
{
+ if (tray)
+ tray->hide();
+ stop_tracker_();
}
void MainWindow::set_working_directory()
@@ -650,10 +653,6 @@ void MainWindow::showCurveConfiguration()
void MainWindow::exit()
{
- if (tray)
- tray->hide();
- stop_tracker_();
-
QCoreApplication::exit(0);
}