From 8ac215fa520783020103fbe3f4b95b691b6dbb4d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 12 May 2014 17:39:04 +0200 Subject: [PATCH] Clear old keybindings when rereading config. --- qutebrowser/keyinput/_basekeyparser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qutebrowser/keyinput/_basekeyparser.py b/qutebrowser/keyinput/_basekeyparser.py index cd3d38e7f..079cc9147 100644 --- a/qutebrowser/keyinput/_basekeyparser.py +++ b/qutebrowser/keyinput/_basekeyparser.py @@ -324,6 +324,8 @@ class BaseKeyParser(QObject): sectname = self._confsectname else: self._confsectname = sectname + self.bindings = {} + self.special_bindings = {} sect = config.section(sectname) if not sect.items(): logging.warn("No keybindings defined!")