fix hotkey handling

This commit is contained in:
BVK Chaitanya 2010-09-03 20:53:38 +05:30
parent 322061f869
commit 78780e7005

View file

@ -107,8 +107,8 @@ append_menu_entry (int argc, const char **args, char **classes,
menu_hotkey = hotkey_aliases[i].key;
break;
}
if (i > ARRAY_SIZE (hotkey_aliases))
goto fail;
if (i == ARRAY_SIZE (hotkey_aliases))
menu_hotkey = hotkey[0];
}
if (! argc)