handles canceled downloads properly (fixes #81)

This commit is contained in:
Micah Lee 2014-09-22 20:22:30 +00:00
parent 8892126155
commit f5ddd23b70
4 changed files with 25 additions and 8 deletions

View file

@ -194,6 +194,9 @@ class OnionShareGui(QtGui.QWidget):
if not web.get_stay_open():
self.server_status.stop_server()
elif event["type"] == web.REQUEST_CANCELED:
self.downloads.cancel_download(event["data"]["id"])
elif event["path"] != '/favicon.ico':
self.status_bar.showMessage('{0}: {1}'.format(strings._('other_page_loaded', True), event["path"]))