From 35731feeb5288c724d9cd143ad9042ce411de295 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 14 Mar 2016 19:05:36 +0100 Subject: [PATCH] Fix docs for :download-* commands --- doc/help/commands.asciidoc | 8 ++++---- qutebrowser/browser/downloads.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 395e3d6e4..4fc62d37e 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -180,14 +180,14 @@ Remove all finished downloads from the list. Delete the last/[count]th download from disk. ==== count -The index of the download to cancel. +The index of the download to delete. [[download-open]] === download-open Open the last/[count]th download. ==== count -The index of the download to cancel. +The index of the download to open. [[download-remove]] === download-remove @@ -199,14 +199,14 @@ Remove the last/[count]th download from the list. * +*-a*+, +*--all*+: Deprecated argument for removing all finished downloads. ==== count -The index of the download to cancel. +The index of the download to remove. [[download-retry]] === download-retry Retry the first failed/[count]th download. ==== count -The index of the download to cancel. +The index of the download to retry. [[fake-key]] === fake-key diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index 73a7f0dc0..7f7e62903 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -979,7 +979,7 @@ class DownloadManager(QAbstractListModel): """Delete the last/[count]th download from disk. Args: - count: The index of the download to cancel. + count: The index of the download to delete. """ try: download = self.downloads[count - 1] @@ -998,7 +998,7 @@ class DownloadManager(QAbstractListModel): """Open the last/[count]th download. Args: - count: The index of the download to cancel. + count: The index of the download to open. """ try: download = self.downloads[count - 1] @@ -1016,7 +1016,7 @@ class DownloadManager(QAbstractListModel): """Retry the first failed/[count]th download. Args: - count: The index of the download to cancel. + count: The index of the download to retry. """ if count: try: @@ -1103,7 +1103,7 @@ class DownloadManager(QAbstractListModel): Args: all_: Deprecated argument for removing all finished downloads. - count: The index of the download to cancel. + count: The index of the download to remove. """ if all_: message.warning(self._win_id, ":download-remove --all is "