Fix crash when keyboard map changes and no keybindings exist. Don't assume old tree is non-null and start rebinding it.
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
openbox/keyboard.c
→
openbox/keyboard.c
@@ -313,7 +313,8 @@ KeyBindingTree *old;
old = keyboard_firstnode; keyboard_firstnode = NULL; - node_rebind(old); + if (old) + node_rebind(old); tree_destroy(old); set_curpos(NULL);