: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: Args:
count: The index of the download to cancel. 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: try:
download = finished_items[count - 1] download = finished_items[count - 1]
except IndexError: except IndexError: