Skip to content

Commit

Permalink
fix preferences dialog for loadgame hotkey
Browse files Browse the repository at this point in the history
Some hotkeys (like the loadgame hotkey) are present in some, but not all hotkey scopes and teh hotkey preferences dialog was unable to handle that. One of the results was that it was not possible to assign the same hotkey to the loadgame hotkey and the loadmap hotkey, this commit attempts to fix that.
  • Loading branch information
gfgtdf committed Oct 25, 2015
1 parent 74c1b6f commit 63f3f55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hotkey/hotkey_preferences_display.cpp
Expand Up @@ -639,6 +639,8 @@ void hotkey_preferences_dialog::show_binding_dialog(

// only if not canceled.
if (!(keycode == SDLK_ESCAPE && (mod & any_mod) == 0)) {
hotkey::scope_changer scope_restorer;
hotkey::set_active_scopes(hotkey::get_hotkey_command(id).scope);

hotkey::hotkey_item newhk(id);
const hotkey::hotkey_item* oldhk = NULL;
Expand Down

0 comments on commit 63f3f55

Please sign in to comment.