Clear old keybindings when rereading config.

This commit is contained in:
Florian Bruhin 2014-05-12 17:39:04 +02:00
parent c3816b2820
commit 8ac215fa52

View File

@ -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!")