mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 18:58:00 +00:00
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 7f673dcd1f825c9ae8789b1b0e7458ea50e2e673)
This commit is contained in:
parent
b83d9fa189
commit
e0045bf78f
@ -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…
x
Reference in New Issue
Block a user