:download-open now also checks whether download was successful.

This commit is contained in:
Joel Torstensson 2015-02-11 22:13:29 +01:00
parent 6e3d5867f9
commit 658ab70e98

View File

@ -762,7 +762,7 @@ class DownloadManager(QAbstractListModel):
Args:
count: The index of the download to cancel.
"""
finished_items = [d for d in self.downloads if d.done]
finished_items = [d for d in self.downloads if d.done and d.successful]
try:
download = finished_items[count - 1]
except IndexError: