summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-27 20:21:00 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-27 20:21:00 +0000
commitf440f91849a807e9026d79c06075bbd15852cbf6 (patch)
tree5742bfbca514337cd2de0fe236a3c277b6a4e219 /gtk2_ardour/region_selection.cc
parent86cb9348e829e61b7c1e324930882af147f504c9 (diff)
Try to make new layering stuff play nicely with undo.
git-svn-id: svn://localhost/ardour2/branches/3.0@11097 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_selection.cc')
-rw-r--r--gtk2_ardour/region_selection.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/region_selection.cc b/gtk2_ardour/region_selection.cc
index 333e2104ad..8c3a641941 100644
--- a/gtk2_ardour/region_selection.cc
+++ b/gtk2_ardour/region_selection.cc
@@ -274,3 +274,15 @@ RegionSelection::end_frame () const
return e;
}
+
+/** @return the playlists that the regions in the selection are on */
+set<boost::shared_ptr<Playlist> >
+RegionSelection::playlists () const
+{
+ set<boost::shared_ptr<Playlist> > pl;
+ for (RegionSelection::const_iterator i = begin(); i != end(); ++i) {
+ pl.insert ((*i)->region()->playlist ());
+ }
+
+ return pl;
+}