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:
Charles Dang 2018-05-21 10:34:34 +11:00
parent b83d9fa189
commit e0045bf78f

View file

@ -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);
}