Add option to insert time on all a track's playlists (#4304).

git-svn-id: svn://localhost/ardour2/branches/3.0@10054 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-09-05 23:38:18 +00:00
parent e3692bf3da
commit 24a38b8b08
7 changed files with 63 additions and 23 deletions

View file

@ -1465,18 +1465,10 @@ RouteTimeAxisView::build_playlist_menu ()
playlist_action_menu->set_name ("ArdourContextMenu");
playlist_items.clear();
vector<boost::shared_ptr<Playlist> > playlists, playlists_tr;
boost::shared_ptr<Track> tr = track();
RadioMenuItem::Group playlist_group;
boost::shared_ptr<Track> tr = track ();
_session->playlists->get (playlists);
/* find the playlists for this diskstream */
for (vector<boost::shared_ptr<Playlist> >::iterator i = playlists.begin(); i != playlists.end(); ++i) {
if (((*i)->get_orig_diskstream_id() == tr->diskstream_id()) || (tr->playlist()->id() == (*i)->id())) {
playlists_tr.push_back(*i);
}
}
vector<boost::shared_ptr<Playlist> > playlists_tr = _session->playlists->playlists_for_track (tr);
/* sort the playlists */
PlaylistSorter cmp;