summaryrefslogtreecommitdiffstats
path: root/module/gui/MainWindow.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-30 18:28:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-30 18:28:58 +0200
commit59c1d99633dc2a62e8f8b34dc926e4f83eb1babf (patch)
tree3392a1ad09ea2d5a042e836fd4bbcad855325e82 /module/gui/MainWindow.py
parenthoster plugins: add ifile.it, update share-rapid.com, ifolder.ru (diff)
downloadpyload-59c1d99633dc2a62e8f8b34dc926e4f83eb1babf.tar.xz
royflos GUI patch 2
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):
"""