Hotkeys - if a hotkey isn't found, return an empty object rather than null, so that at least it doesn't call exceptions in menu items that reference them for shortcut key strings

This commit is contained in:
adelikat 2013-08-06 01:32:00 +00:00
parent 7065588c1c
commit 911385aff6
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ namespace BizHawk.MultiClient
{
get
{
return Bindings.FirstOrDefault(x => x.DisplayName == index) ?? null;
return Bindings.FirstOrDefault(x => x.DisplayName == index) ?? new Binding();
}
}
}