summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-23 07:38:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-23 07:38:05 +0200
commit796c56ab38c39d25af4c8cd73f9c65ff648ef308 (patch)
treebc686d0e97f9e6b065175f97da120ee488eed894
parent52606b92439f97a95b9917c01d451c902d620052 (diff)
gui/main-window: fix ps3 eye LED remaining litopentrack-2.3.8
-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);
}