Merge pull request #539 from wesnoth/gfgtdf-patch-2
fix preferences dialog for loadgame hotkey
This commit is contained in:
commit
9acd9bfebd
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue