From c94ff7b946643a85891a01be1d58cacdbb638073 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 5 Aug 2014 19:58:47 +0200 Subject: [PATCH] Fix import for get_standard_dir --- qutebrowser/browser/downloads.py | 2 +- qutebrowser/config/conftypes.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index 51ee1c15e..7132f6932 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -212,7 +212,7 @@ class DownloadItem(QObject): else: download_dir = config.get('storage', 'download-directory') if download_dir is None: - download_dir = get_standard_dir( + download_dir = utils.get_standard_dir( QStandardPaths.DownloadLocation) target = os.path.join(download_dir, filename) logger.debug("Setting filename to {}".format(filename)) diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index f4ab3851e..d90d696c2 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -29,7 +29,6 @@ from PyQt5.QtGui import QColor, QFont from PyQt5.QtNetwork import QNetworkProxy import qutebrowser.commands.utils as cmdutils -from qutebrowser.utils.misc import get_standard_dir class ValidationError(ValueError):