From af10d1c8570effde8215da0d1824f2d7f1f41de5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 27 Aug 2014 20:22:38 +0200 Subject: [PATCH] Fix cache invalidation for on_setting_changed. --- qutebrowser/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 20b67a3ca..4ea744556 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -411,10 +411,10 @@ class ConfigManager(QObject): except KeyError: raise NoOptionError(optname, sectname) else: + self.get.cache_clear() if sectname in ('colors', 'fonts'): self.style_changed.emit(sectname, optname) self.changed.emit(sectname, optname) - self.get.cache_clear() @cmdutils.register(instance='config') def save(self):