diff options
| author | 2011-09-30 18:28:58 +0200 | |
|---|---|---|
| committer | 2011-09-30 18:28:58 +0200 | |
| commit | 59c1d99633dc2a62e8f8b34dc926e4f83eb1babf (patch) | |
| tree | 3392a1ad09ea2d5a042e836fd4bbcad855325e82 /module/gui/MainWindow.py | |
| parent | hoster plugins: add ifile.it, update share-rapid.com, ifolder.ru (diff) | |
| download | pyload-59c1d99633dc2a62e8f8b34dc926e4f83eb1babf.tar.xz | |
royflos GUI patch 2
Diffstat (limited to 'module/gui/MainWindow.py')
| -rw-r--r-- | module/gui/MainWindow.py | 4 |
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): """ |
