From 9f0658f191963e83343b89ccb8f39292228e6f71 Mon Sep 17 00:00:00 2001 From: Joel Torstensson Date: Thu, 12 Feb 2015 22:21:30 +0100 Subject: [PATCH] Minor fixes. --- qutebrowser/browser/downloads.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index 17b661d51..d2d4ad1d7 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -784,7 +784,7 @@ class DownloadManager(QAbstractListModel): @cmdutils.register(instance='download-manager', scope='window') def download_open(self, count: {'special': 'count'}=0): - """Open the last/[count]th finished download. + """Open the last/[count]th download. Args: count: The index of the download to cancel. @@ -793,7 +793,7 @@ class DownloadManager(QAbstractListModel): download = self.downloads[count - 1] except IndexError: raise cmdexc.CommandError("There's no download {}!".format(count)) - if not download.done and not download.successful: + if not download.successful: raise cmdexc.CommandError("Download {} is not done!".format(count)) download.open_file() @@ -858,7 +858,7 @@ class DownloadManager(QAbstractListModel): @cmdutils.register(instance='download-manager', scope='window') def download_remove(self, all_: {'name': 'all'}=False, count: {'special': 'count'}=0): - """Remove the last/[count]th finished download. + """Remove the last/[count]th download from the list. Args: all_: If given removes all finished downloads.