13
0

Fix crash (or stuck solo) when removing tracks

This commit is contained in:
Robin Gareus 2024-01-06 05:17:27 +01:00
parent 49256a37e8
commit bcfa591ed2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -3550,6 +3550,10 @@ Session::remove_routes (std::shared_ptr<RouteList> routes_to_remove)
/* speed up session deletion, don't do the solo dance */
if (!deletion_in_progress ()) {
/* Do not postpone set_value as rt-event via AC::check_rt,
* The route will be deleted by then, and the Controllable gone.
*/
(*iter)->solo_control()->clear_flag (Controllable::RealTime);
(*iter)->solo_control()->set_value (0.0, Controllable::NoGroup);
}