:download-open now also checks whether download was successful.
This commit is contained in:
parent
6e3d5867f9
commit
658ab70e98
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user