summaryrefslogtreecommitdiffstats
path: root/module/gui/MainWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/gui/MainWindow.py')
-rw-r--r--module/gui/MainWindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py
index 9aea50b33..1195a4436 100644
--- a/module/gui/MainWindow.py
+++ b/module/gui/MainWindow.py
@@ -445,6 +445,10 @@ class MainWindow(QMainWindow):
event.ignore()
self.hide()
self.emit(SIGNAL("hidden"))
+
+ # quit when no tray is available
+ if not QSystemTrayIcon.isSystemTrayAvailable():
+ self.emit(SIGNAL("Quit"))
def restoreWindow(self, state, geo):
"""