Fixes '0xffff' in keybindings prefs when a binding is previously set to Disabled
This commit is contained in:
parent
713cb3f3d8
commit
4aaaaff2ef
|
@ -656,6 +656,16 @@ class ConfigBase(Borg):
|
||||||
parser[section_name][layout] == {}:
|
parser[section_name][layout] == {}:
|
||||||
continue
|
continue
|
||||||
section[layout] = parser[section_name][layout]
|
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:
|
else:
|
||||||
try:
|
try:
|
||||||
section.update(parser[section_name])
|
section.update(parser[section_name])
|
||||||
|
|
Loading…
Reference in New Issue