Don't freak out if no keybind section exists
This commit is contained in:
parent
bdd42a5413
commit
97c6d9f1c9
@ -96,7 +96,10 @@ class QuteBrowser(QApplication):
|
|||||||
cmdutils.register_all()
|
cmdutils.register_all()
|
||||||
for cmd in cmdutils.cmd_dict.values():
|
for cmd in cmdutils.cmd_dict.values():
|
||||||
cmd.signal.connect(self.cmd_handler)
|
cmd.signal.connect(self.cmd_handler)
|
||||||
|
try:
|
||||||
self.keyparser.from_config_sect(self.config['keybind'])
|
self.keyparser.from_config_sect(self.config['keybind'])
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
def cmd_handler(self, tpl):
|
def cmd_handler(self, tpl):
|
||||||
"""Handler which gets called from all commands and delegates the
|
"""Handler which gets called from all commands and delegates the
|
||||||
|
Loading…
Reference in New Issue
Block a user