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 /gtk2_ardour/playlist_selector.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 'gtk2_ardour/playlist_selector.cc')
-rw-r--r-- | gtk2_ardour/playlist_selector.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/playlist_selector.cc b/gtk2_ardour/playlist_selector.cc index ca40951e8b..82541cd7fb 100644 --- a/gtk2_ardour/playlist_selector.cc +++ b/gtk2_ardour/playlist_selector.cc @@ -112,7 +112,7 @@ PlaylistSelector::show_for (RouteUI* ruix) model->clear (); - session->foreach_playlist (this, &PlaylistSelector::add_playlist_to_map); + session->playlists.foreach (this, &PlaylistSelector::add_playlist_to_map); this_ds = rui->get_diskstream(); @@ -180,7 +180,7 @@ PlaylistSelector::show_for (RouteUI* ruix) // Add unassigned (imported) playlists to the list list<boost::shared_ptr<Playlist> > unassigned; - session->unassigned_playlists (unassigned); + session->playlists.unassigned (unassigned); TreeModel::Row row; TreeModel::Row* selected_row = 0; |