Fix :adblock-update.

This commit is contained in:
Florian Bruhin 2015-08-06 20:38:51 +02:00
parent 46f3be2df7
commit 5fca27ad02

View File

@ -724,7 +724,7 @@ class DownloadManager(QAbstractListModel):
if prompt_download_directory is None:
prompt_download_directory = config.get(
'storage', 'prompt-download-directory')
if not prompt_download_directory:
if not prompt_download_directory and not fileobj:
filename = config.get('storage', 'download-directory')
if fileobj is not None or filename is not None:
@ -818,7 +818,7 @@ class DownloadManager(QAbstractListModel):
prompt_download_directory = config.get('storage',
'prompt-download-directory')
if not prompt_download_directory:
if not prompt_download_directory and not fileobj:
filename = config.get('storage', 'download-directory')
if filename is not None: