summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-28 10:52:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-10-28 10:52:49 +0100
commita26e3709dd3ee26dde34fd3e50af2a2318f9a454 (patch)
treed4e3712900c672eb85776fb393547ebe991985c0 /facetracknoir/ui.cpp
parent4dae05379b7a579e365575a404e343bfa9eb0a9d (diff)
only hide on minimize if tray enabled
Diffstat (limited to 'facetracknoir/ui.cpp')
-rw-r--r--facetracknoir/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index 44eff98e..d606ca1f 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -436,7 +436,7 @@ void MainWindow::restore_from_tray(QSystemTrayIcon::ActivationReason)
void MainWindow::changeEvent(QEvent* e)
{
- if (e->type() == QEvent::WindowStateChange && (windowState() & Qt::WindowMinimized))
+ if (tray_enabled && e->type() == QEvent::WindowStateChange && (windowState() & Qt::WindowMinimized))
hide();
QMainWindow::changeEvent(e);
}