Fixes '0xffff' in keybindings prefs when a binding is previously set to Disabled

This commit is contained in:
Stephen Boddy 2017-02-01 10:03:29 +01:00
parent 713cb3f3d8
commit 4aaaaff2ef

View File

@ -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])