Ignore clicks on failed downloads.

Fixes #396.
This commit is contained in:
Florian Bruhin 2014-12-22 17:36:02 +01:00
parent 57c8dff396
commit 89e051ff51

View File

@ -113,7 +113,7 @@ class DownloadView(QListView):
if not index.isValid(): if not index.isValid():
return return
item = self.model().data(index, downloads.ModelRole.item) item = self.model().data(index, downloads.ModelRole.item)
if item.done: if item.done and item.successful:
item.open_file() item.open_file()
self.model().remove_item(item) self.model().remove_item(item)