diff options
author | mkaay <mkaay@mkaay.de> | 2010-05-01 20:43:02 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-05-01 20:43:02 +0200 |
commit | 2686062517dbd382ee7009e38be1ea3fe3191ff9 (patch) | |
tree | 6ed56a64df23fb6d8a1828c31adc704c49f29574 /pyLoadGui.py | |
parent | updated captcha manager (diff) | |
download | pyload-2686062517dbd382ee7009e38be1ea3fe3191ff9.tar.xz |
gui captcha fix
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py index 782c778e5..1ceb9f1a7 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -576,6 +576,12 @@ class main(QObject): if self.connector.captchaWaiting() and self.mainWindow.captchaDock.isFree(): cid, img, imgType = self.connector.getCaptcha() self.mainWindow.captchaDock.emit(SIGNAL("setTask"), cid, str(img), imgType) + elif not self.mainWindow.captchaDock.isFree(): + status = self.connector.getCaptchaStatus(self.mainWindow.captchaDock.currentID) + if not (status == "user" or status == "shared-user"): + self.mainWindow.captchaDock.hide() + self.mainWindow.captchaDock.processing = False + self.mainWindow.captchaDock.currentID = None def slotCaptchaDone(self, cid, result): self.connector.setCaptchaResult(str(cid), str(result)) |