This commit is contained in:
Kovid Goyal 2014-02-13 16:58:46 +05:30
parent c1eee81ff3
commit 55c728dd9e

View File

@ -637,6 +637,9 @@ class Browser(QObject, FormsMixin):
self.page.unsupportedContent.disconnect(self.page.on_unsupported_content) self.page.unsupportedContent.disconnect(self.page.on_unsupported_content)
try: try:
def download(reply): def download(reply):
if ans[0]:
reply.abort() # We only handle the first unsupported download
return
ans[0] = True ans[0] = True
while not reply.isFinished() and end_time > time.time(): while not reply.isFinished() and end_time > time.time():
if not loop.processEvents(): if not loop.processEvents():