Fix adding tracks/busses at the top

This commit is contained in:
Robin Gareus 2017-06-17 04:31:18 +02:00
parent 591d75f1d2
commit 1e97c09eed

View file

@ -4219,7 +4219,7 @@ PresentationInfo::order_t
ARDOUR_UI::translate_order (RouteDialogs::InsertAt place) ARDOUR_UI::translate_order (RouteDialogs::InsertAt place)
{ {
if (editor->get_selection().tracks.empty()) { if (editor->get_selection().tracks.empty()) {
return PresentationInfo::max_order; return place == RouteDialogs::First ? 0 : PresentationInfo::max_order;
} }
PresentationInfo::order_t order_hint = PresentationInfo::max_order; PresentationInfo::order_t order_hint = PresentationInfo::max_order;