Fix removing of a clicked download

This commit is contained in:
Florian Bruhin 2016-09-12 21:47:01 +02:00
parent 5b0fc41367
commit 0b310d6910

View File

@ -113,7 +113,7 @@ class DownloadView(QListView):
item = self.model().data(index, downloads.ModelRole.item) item = self.model().data(index, downloads.ModelRole.item)
if item.done and item.successful: if item.done and item.successful:
item.open_file() item.open_file()
self.model().remove_item(item) item.remove()
def _get_menu_actions(self, item): def _get_menu_actions(self, item):
"""Get the available context menu actions for a given DownloadItem. """Get the available context menu actions for a given DownloadItem.