diff options
author | mkaay <mkaay@mkaay.de> | 2010-09-02 18:55:34 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-09-02 18:55:34 +0200 |
commit | ef049ef51d2e32290af0eb14ece03ef981b4783d (patch) | |
tree | 3e41695f4114e640545ac648f6a9907df789f48f /module/gui/MainWindow.py | |
parent | db fixes (diff) | |
download | pyload-ef049ef51d2e32290af0eb14ece03ef981b4783d.tar.xz |
gui: minimize to tray, eta
Diffstat (limited to 'module/gui/MainWindow.py')
-rw-r--r-- | module/gui/MainWindow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py index 0c8953595..21227bdf5 100644 --- a/module/gui/MainWindow.py +++ b/module/gui/MainWindow.py @@ -113,7 +113,6 @@ class MainWindow(QMainWindow): #signals.. self.connect(self.mactions["manager"], SIGNAL("triggered()"), self.slotShowConnector) - self.connect(self.mactions["exit"], SIGNAL("triggered()"), self.close) self.connect(self.tabs["queue"]["view"], SIGNAL('customContextMenuRequested(const QPoint &)'), self.slotQueueContextMenu) self.connect(self.tabs["collector"]["package_view"], SIGNAL('customContextMenuRequested(const QPoint &)'), self.slotCollectorContextMenu) @@ -346,8 +345,9 @@ class MainWindow(QMainWindow): let me first save my state """ self.saveWindow() - event.accept() - self.emit(SIGNAL("quit")) + event.ignore() + self.hide() + self.emit(SIGNAL("hidden")) def restoreWindow(self, state, geo): """ |