summaryrefslogtreecommitdiff
path: root/libs/ardour/named_selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-03 21:52:10 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-03 21:52:10 +0000
commitee9455af40adaaf48010784330f457f471b2546e (patch)
tree187facb02c3a19b350ae9e3c3308d532331dfbd3 /libs/ardour/named_selection.cc
parent03c74e45a871f2e09fb1ee855f830c94d1cdb163 (diff)
Move some (most) playlist-related code and data into a separate object
(SessionPlaylists). Main point being to ensure that, when a Session is destroyed (especially as a result of its constructor throwing an exception) SessionPlaylists::track is disconnected from its signal at the same time as the list of playlists is destroyed. Otherwise problems abound. git-svn-id: svn://localhost/ardour2/branches/3.0@6270 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/named_selection.cc')
-rw-r--r--libs/ardour/named_selection.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/named_selection.cc b/libs/ardour/named_selection.cc
index 0c6b3699b6..56e4252ab9 100644
--- a/libs/ardour/named_selection.cc
+++ b/libs/ardour/named_selection.cc
@@ -82,7 +82,7 @@ NamedSelection::NamedSelection (Session& session, const XMLNode& node)
plnode = *niter;
if ((property = plnode->property ("name")) != 0) {
- if ((playlist = session.playlist_by_name (property->value())) != 0) {
+ if ((playlist = session.playlists.by_name (property->value())) != 0) {
playlist->use();
playlists.push_back (playlist);
} else {