From 4aaaaff2ef55db6b1d563989589422cc2df271dd Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Wed, 1 Feb 2017 10:03:29 +0100 Subject: [PATCH] Fixes '0xffff' in keybindings prefs when a binding is previously set to Disabled --- terminatorlib/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index ed84c02a..b5f415e6 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -656,6 +656,16 @@ class ConfigBase(Borg): parser[section_name][layout] == {}: continue section[layout] = parser[section_name][layout] + elif section_name == 'keybindings': + if not parser.has_key(section_name): + continue + for part in parser[section_name]: + dbg('ConfigBase::load: Processing %s: %s' % (section_name, + part)) + if parser[section_name][part] == 'None': + section[part] = None + else: + section[part] = parser[section_name][part] else: try: section.update(parser[section_name])