From 50604d83de43e71ccc3190400be2d8c89dbe6b4c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 19 Mar 2019 21:56:13 +0100 Subject: Fix incorrectly saved un-used playlists This addresses issues with session-cleanup and region-cleanup in some sessions. The root-cause why some unused playlists were saved in the session XML under and not is not known. Early 6.0-pre did incorrect reference counting, but also older sessions had this issue. Perhaps due to ambiguities of matching playlists by name in 5.x or session-format changes 3.x .. 5.x. --- libs/ardour/session_state.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/ardour/session_state.cc') diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 8e08630471..534bd4b9bb 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1702,6 +1702,9 @@ Session::set_state (const XMLNode& node, int version) goto out; } + /* Now that we Tracks have been loaded and playlists are assigned */ + _playlists->update_tracking (); + /* Now that we have Routes and masters loaded, connect them if appropriate */ Slavable::Assign (_vca_manager); /* EMIT SIGNAL */ -- cgit v1.2.3