From 5d5652a24be25d67b862d329fa0c42fa84155f72 Mon Sep 17 00:00:00 2001 From: Yannis Rohloff Date: Sat, 4 Mar 2017 17:08:53 +0100 Subject: [PATCH] always read the host file --- qutebrowser/browser/adblock.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/adblock.py b/qutebrowser/browser/adblock.py index 1a7525372..28340f6c3 100644 --- a/qutebrowser/browser/adblock.py +++ b/qutebrowser/browser/adblock.py @@ -154,8 +154,6 @@ class HostBlocker: def read_hosts(self): """Read hosts from the existing blocked-hosts file.""" - if not config.get('content', 'host-blocking-enabled'): - return self._blocked_hosts = set() @@ -168,7 +166,8 @@ class HostBlocker: if not found: args = objreg.get('args') if (config.get('content', 'host-block-lists') is not None and - args.basedir is None): + args.basedir is None and + config.get('content', 'host-blocking-enabled')): message.info("Run :adblock-update to get adblock lists.") @cmdutils.register(instance='host-blocker')