Fix downloading with relative filepaths

This commit is contained in:
Florian Bruhin 2014-06-27 18:30:20 +02:00
parent 97dd799729
commit 1a73a90515
2 changed files with 1 additions and 3 deletions

View File

@ -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.

View File

@ -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.