summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r--gui/main-window.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index 225d0629..8d0c005d 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -309,9 +309,6 @@ bool MainWindow::get_new_config_name_from_dialog(QString& ret)
MainWindow::~MainWindow()
{
- if (tray)
- tray->hide();
- stop_tracker_();
}
void MainWindow::set_working_directory()
@@ -653,6 +650,10 @@ void MainWindow::showCurveConfiguration()
void MainWindow::exit()
{
+ if (tray)
+ tray->hide();
+ stop_tracker_();
+
QCoreApplication::exit(0);
}