This commit is contained in:
Florian Bruhin 2016-09-07 18:45:46 +02:00
parent 44d1056e54
commit 955910a0e8
3 changed files with 5 additions and 3 deletions

View File

@ -215,7 +215,8 @@ class HostBlocker:
auto_remove=True)
self._in_progress.append(download)
download.finished.connect(
functools.partial(self.on_download_finished, download, win_id))
functools.partial(self.on_download_finished, download,
win_id))
def _merge_file(self, byte_io):
"""Read and merge host files.

View File

@ -57,7 +57,7 @@ def create(win_id, parent=None):
def init(args):
"""Initialize backend-specific modules."""
if objreg.get('args').backend == 'webengine':
if args.backend == 'webengine':
from qutebrowser.browser.webengine import webenginetab
webenginetab.init()
else:

View File

@ -19,8 +19,9 @@
"""A request interceptor taking care of adblocking and custom headers."""
from PyQt5.QtWidgets import QApplication
# pylint: disable=no-name-in-module,import-error,useless-suppression
from PyQt5.QtWebEngineCore import QWebEngineUrlRequestInterceptor
# pylint: enable=no-name-in-module,import-error,useless-suppression
from qutebrowser.browser import shared
from qutebrowser.utils import utils, log