summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-03-19 21:56:13 +0100
committerRobin Gareus <robin@gareus.org>2019-03-19 22:05:06 +0100
commit50604d83de43e71ccc3190400be2d8c89dbe6b4c (patch)
tree9796e126b02ef1362cba87e96d071f35b0ecaf76 /libs/ardour/session_state.cc
parentc2e0fe8b3f2b07d8cc4abc0d873c98fca3bb4b9e (diff)
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 <Playlists> and not <UnusedPlaylists> 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.
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc3
1 files changed, 3 insertions, 0 deletions
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 */