From 6219b37c39e2123d6ea1f460a8f0c4bf71c598d6 Mon Sep 17 00:00:00 2001 From: Yannis Rohloff Date: Sat, 4 Mar 2017 16:39:44 +0100 Subject: [PATCH] adblock: Don't show message if host-blocking-enabled is true Fixes #2364 --- qutebrowser/browser/adblock.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qutebrowser/browser/adblock.py b/qutebrowser/browser/adblock.py index b0a9962c6..1a7525372 100644 --- a/qutebrowser/browser/adblock.py +++ b/qutebrowser/browser/adblock.py @@ -154,6 +154,9 @@ 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() self._read_hosts_file(self._config_hosts_file,