summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-02-06 15:24:40 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-02-06 15:24:40 +0000
commit1046be7549b308c835d67ad4c1bd026159450371 (patch)
treed817c2f33c21096c8073429557a1d7be56181d27
parent9eb8d34ecfc0bb5aa98700f8bd5c813f19a9f547 (diff)
make "Set Range Selection" in per-region context (sub)menu use all selected regions instead of just the first selected one (alternate behaviour could include using the clicked regionview, but that is to be generally avoided)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3020 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/editor_selection.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index 79998154e2..0330c6567b 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -963,13 +963,7 @@ Editor::set_selection_from_audio_region ()
return;
}
- RegionView* rv = *(selection->regions.begin());
- boost::shared_ptr<Region> region = rv->region();
-
- begin_reversible_command (_("set selection from region"));
- selection->set (0, region->position(), region->last_frame());
- commit_reversible_command ();
-
+ selection->set (0, selection->regions.start(), selection->regions.end_frame());
set_mouse_mode (Editing::MouseRange, false);
}