summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.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 /pyLoadGui.py
parenthoster plugins: add ifile.it, update share-rapid.com, ifolder.ru (diff)
downloadpyload-59c1d99633dc2a62e8f8b34dc926e4f83eb1babf.tar.xz
royflos GUI patch 2
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py24
1 files changed, 7 insertions, 17 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 3a5d62e7b..b8dd6995d 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -171,8 +171,8 @@ class main(QObject):
self.connect(self.mainWindow, SIGNAL("pullOutPackage"), self.slotPullOutPackage)
self.connect(self.mainWindow, SIGNAL("refreshStatus"), self.slotRefreshStatus)
self.connect(self.mainWindow, SIGNAL("reloadAccounts"), self.slotReloadAccounts)
+ self.connect(self.mainWindow, SIGNAL("Quit"), self.slotQuit)
- self.connect(self.mainWindow, SIGNAL("quit"), self.quit)
self.connect(self.mainWindow.mactions["exit"], SIGNAL("triggered()"), self.slotQuit)
self.connect(self.mainWindow.captchaDock, SIGNAL("done"), self.slotCaptchaDone)
@@ -186,11 +186,11 @@ class main(QObject):
self.stopMain()
self.init()
- def quit(self):
- """
- quit gui
- """
- self.app.quit()
+ #def quit(self): #not used anymore?
+ # """
+ # quit gui
+ # """
+ # self.app.quit()
def loop(self):
"""
@@ -472,7 +472,7 @@ class main(QObject):
data = {"password": password}
self.connector.setPackageData(pack, data)
- def slotAddFileToPackage(self, pid, fid): #deprecated?
+ def slotAddFileToPackage(self, pid, fid): #TODO deprecated? gets called
"""
emitted from collector view after a drop action
"""
@@ -511,10 +511,6 @@ class main(QObject):
self.parser.saveData()
- # quit when no tray is avaiable
- if not QSystemTrayIcon.isSystemTrayAvailable():
- self.slotQuit()
-
def restoreMainWindow(self):
"""
load and restore main window geometry and toolbar/dock position from config
@@ -622,12 +618,6 @@ class main(QObject):
"""
self.connector.pullFromQueue(pid)
- def slotSetPriority(self, pid, level):
- """
- set package priority
- """
- self.connector.setPriority(pid, level)
-
def checkCaptcha(self):
if self.connector.isCaptchaWaiting() and self.mainWindow.captchaDock.isFree():
t = self.connector.getCaptchaTask(False)