diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-03 21:52:10 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-03 21:52:10 +0000 |
commit | ee9455af40adaaf48010784330f457f471b2546e (patch) | |
tree | 187facb02c3a19b350ae9e3c3308d532331dfbd3 /libs/ardour/playlist.cc | |
parent | 03c74e45a871f2e09fb1ee855f830c94d1cdb163 (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/playlist.cc')
-rw-r--r-- | libs/ardour/playlist.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index bcc4c6061d..e3d1831470 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -1967,7 +1967,7 @@ Playlist::bump_name (string name, Session &session) do { newname = bump_name_once (newname); - } while (session.playlist_by_name (newname)!=NULL); + } while (session.playlists.by_name (newname)!=NULL); return newname; } |