fix reordering of newly added tracks in livetrax scenario

This commit is contained in:
Paul Davis 2024-04-06 21:46:08 -06:00
parent 41b9ee570d
commit 6546a035c6
1 changed files with 5 additions and 2 deletions

View File

@ -3562,8 +3562,6 @@ Session::add_routes_inner (RouteList& new_routes, bool input_auto_connect, bool
{
PresentationInfo::ChangeSuspender cs;
ensure_route_presentation_info_gap (order, new_routes.size());
ensure_stripable_sort_order ();
reassign_track_numbers ();
for (RouteList::iterator x = new_routes.begin(); x != new_routes.end(); ++x, ++added) {
@ -3646,6 +3644,11 @@ Session::add_routes_inner (RouteList& new_routes, bool input_auto_connect, bool
ARDOUR::GUIIdle ();
}
ensure_stripable_sort_order ();
if (Profile->get_livetrax()) {
reassign_track_numbers ();
}
}
if (!loading()) {