diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 5e8a9a9d2..042e75a51 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1333,8 +1333,6 @@ class CommandDispatcher: elif mhtml_: self._download_mhtml(dest) else: - tab = self._current_widget() - if dest is None: target = None else: diff --git a/qutebrowser/browser/qtnetworkdownloads.py b/qutebrowser/browser/qtnetworkdownloads.py index 5bcc67c0f..10fd4dafc 100644 --- a/qutebrowser/browser/qtnetworkdownloads.py +++ b/qutebrowser/browser/qtnetworkdownloads.py @@ -25,7 +25,7 @@ import shutil import functools import collections -from PyQt5.QtCore import pyqtSlot, pyqtSignal, QTimer +from PyQt5.QtCore import pyqtSlot, QTimer from PyQt5.QtNetwork import QNetworkRequest, QNetworkReply from qutebrowser.utils import message, usertypes, log, urlutils