diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-04 22:46:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-04 22:46:51 +0000 |
commit | 72393f101ba2cae980838dd0d857719719ecc3d7 (patch) | |
tree | a54069a53df9879b75bfd6ae3455fd60cc1a1d30 /gtk2_ardour/editor.cc | |
parent | 1f6684237c1711858c4853016131a70a6ef0edf9 (diff) |
allow region list selection of whole file regions to select every instance of a region that has any source relationship with that whole file region (from a logic feature that came up while writing the manual)
git-svn-id: svn://localhost/ardour2/branches/3.0@13779 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index a74b4d4e2d..acbb792db5 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4648,7 +4648,7 @@ Editor::get_regions_from_selection_and_entered () } void -Editor::get_regions_corresponding_to (boost::shared_ptr<Region> region, vector<RegionView*>& regions) +Editor::get_regions_corresponding_to (boost::shared_ptr<Region> region, vector<RegionView*>& regions, bool src_comparison) { for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) { @@ -4667,7 +4667,11 @@ Editor::get_regions_corresponding_to (boost::shared_ptr<Region> region, vector<R } if ((pl = (tr->playlist())) != 0) { - pl->get_region_list_equivalent_regions (region, results); + if (src_comparison) { + pl->get_source_equivalent_regions (region, results); + } else { + pl->get_region_list_equivalent_regions (region, results); + } } for (vector<boost::shared_ptr<Region> >::iterator ir = results.begin(); ir != results.end(); ++ir) { |