summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_playlist_importer.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/audio_playlist_importer.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/audio_playlist_importer.cc')
-rw-r--r--libs/ardour/audio_playlist_importer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audio_playlist_importer.cc b/libs/ardour/audio_playlist_importer.cc
index d97e95195f..81ad169989 100644
--- a/libs/ardour/audio_playlist_importer.cc
+++ b/libs/ardour/audio_playlist_importer.cc
@@ -168,7 +168,7 @@ bool
AudioPlaylistImporter::_prepare_move ()
{
// Rename
- while (session.playlist_by_name (name) || !handler.check_name (name)) {
+ while (session.playlists.by_name (name) || !handler.check_name (name)) {
std::pair<bool, string> rename_pair = Rename (_("A playlist with this name already exists, please rename it."), name);
if (!rename_pair.first) {
return false;