Fixed incorrect scope being highlighted in hotkey prefs dialog
This commit is contained in:
parent
b037fc7074
commit
55ab4463ae
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ void show_hotkeys_preferences_dialog(display& disp) {
|
|||
|
||||
// determine the current scope, but skip general == 0
|
||||
int scope;
|
||||
for (scope = 0; scope != hotkey::SCOPE_COUNT; scope++) {
|
||||
for (scope = 1; scope != hotkey::SCOPE_COUNT; scope++) {
|
||||
if (hotkey::is_scope_active(static_cast<hotkey::scope>(scope))) {
|
||||
break; }
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ void show_hotkeys_preferences_dialog(display& disp) {
|
|||
dialog.parent->set_menu(items);
|
||||
dialog.parent->add_pane(&dialog);
|
||||
// select the tab corresponding to the current scope.
|
||||
dialog.parent->get_menu().move_selection(scope);
|
||||
dialog.parent->get_menu().move_selection(scope - 1);
|
||||
dialog.parent->show();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue