summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_markers.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2012-11-28 17:07:35 +0000
committerBen Loftis <ben@glw.com>2012-11-28 17:07:35 +0000
commitf77763020b3450ad68d7155b84f940bd53225950 (patch)
treec51c0f26f6240ee393216b80b68f4d4ac999805a /gtk2_ardour/editor_markers.cc
parent613021bff17b10b10c0924ed3d83bc202f1725c3 (diff)
edit operations should depend on the existence of an explicit range, NOT the mouse mode. this produces less confusion to the user. For an edit (such as delete) the selection should be based on this priority: explicit range selection, ojbect (region) selection, and then implicit range ( i.e. mouse-to-marker)
git-svn-id: svn://localhost/ardour2/branches/3.0@13563 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_markers.cc')
-rw-r--r--gtk2_ardour/editor_markers.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc
index 28706ac7bc..1eae5d7b38 100644
--- a/gtk2_ardour/editor_markers.cc
+++ b/gtk2_ardour/editor_markers.cc
@@ -1175,11 +1175,9 @@ Editor::marker_menu_set_from_selection ()
/* if range selection use first to last */
- if (mouse_mode == Editing::MouseRange) {
- if (!selection->time.empty()) {
- l->set_start (selection->time.start());
- l->set_end (selection->time.end_frame());
- }
+ if (!selection->time.empty()) {
+ l->set_start (selection->time.start());
+ l->set_end (selection->time.end_frame());
}
else {
if (!selection->regions.empty()) {