From 1a73a9051505cfc3e3ede401a1b1be96571ac58d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 27 Jun 2014 18:30:20 +0200 Subject: [PATCH] Fix downloading with relative filepaths --- doc/BUGS | 2 -- qutebrowser/browser/downloads.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/BUGS b/doc/BUGS index 01e801bea..1fc43e2ea 100644 --- a/doc/BUGS +++ b/doc/BUGS @@ -5,8 +5,6 @@ Bugs - page-forward clicks "Newest" on http://explosm.net/ instead of "Next". -- Download: relative filenames are still not handled correctly - - seir sometimes sees "-- COMMAND MODE --" even though that should never happen. diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index 1525fe114..76539b3e3 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -220,7 +220,7 @@ class DownloadItem(QObject): self.filename = target self.basename = os.path.basename(target) try: - self.fileobj = open(filename, 'wb') + self.fileobj = open(target, 'wb') if self._do_delayed_write: # Downloading to the buffer in RAM has already finished so we # write out the data and clean up now.