Unit Recall: select the first row after applying sorting
Reported on the forums: https://forums.wesnoth.org/viewtopic.php?f=4&t=48219
(cherry-picked from commit 7f673dcd1f
)
This commit is contained in:
parent
b83d9fa189
commit
e0045bf78f
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ void unit_recall::pre_show(window& window)
|
|||
return !recall_list_[i]->trait_names().empty() ? recall_list_[i]->trait_names().front().str() : "";
|
||||
});
|
||||
|
||||
list.set_active_sorting_option(sort_last.first >= 0 ? sort_last : sort_default);
|
||||
list.set_active_sorting_option(sort_last.first >= 0 ? sort_last : sort_default, true);
|
||||
|
||||
list_item_clicked(window);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue