From ee9455af40adaaf48010784330f457f471b2546e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 3 Dec 2009 21:52:10 +0000 Subject: 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 --- libs/ardour/session_command.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/session_command.cc') diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index d5de62b142..c078e2cadf 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -99,7 +99,7 @@ Session::memento_command_factory(XMLNode *n) } else if (obj_T == typeid (TempoMap).name()) { return new MementoCommand(*_tempo_map, before, after); } else if (obj_T == typeid (Playlist).name() || obj_T == typeid (AudioPlaylist).name() || obj_T == typeid (MidiPlaylist).name()) { - if (boost::shared_ptr pl = playlist_by_name(child->property("name")->value())) { + if (boost::shared_ptr pl = playlists.by_name(child->property("name")->value())) { return new MementoCommand(*(pl.get()), before, after); } } else if (obj_T == typeid (Route).name() || obj_T == typeid (AudioTrack).name() || obj_T == typeid(MidiTrack).name()) { -- cgit v1.2.3