13
0

L: always reassign track numbers when adding tracks

While presentation info order information is restored from XML state,
track numbers are not, so make sure we setup track numbering during
loading (based on PI order info)
This commit is contained in:
Paul Davis 2024-05-21 07:26:09 -06:00
parent 2065646c48
commit 2137672fde

View File

@ -3681,11 +3681,12 @@ Session::add_routes_inner (RouteList& new_routes, bool input_auto_connect, bool
r->enable_direct_outs ();
}
}
/* do not take `_auto_connect_queue_lock' while holding the process lock */
lm.release ();
reassign_track_numbers ();
}
}
#ifdef LIVETRAX
reassign_track_numbers ();
#endif
}
void
@ -4664,7 +4665,7 @@ Session::reassign_track_numbers ()
}
}
if (Profile->get_livetrax()) {
if (!loading() && Profile->get_livetrax()) {
livetrax_queue_auto_connect ();
}