mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
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:
parent
e3692bf3da
commit
24a38b8b08
7 changed files with 63 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue