diff options
author | Ben Loftis <ben@glw.com> | 2012-11-28 17:07:35 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2012-11-28 17:07:35 +0000 |
commit | f77763020b3450ad68d7155b84f940bd53225950 (patch) | |
tree | c51c0f26f6240ee393216b80b68f4d4ac999805a /gtk2_ardour/editor.cc | |
parent | 613021bff17b10b10c0924ed3d83bc202f1725c3 (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.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 00a2e8b900..453ad7b4b1 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -3262,15 +3262,9 @@ Editor::duplicate_range (bool with_dialog) { float times = 1.0f; - if (mouse_mode == MouseRange) { - if (selection->time.length() == 0) { - return; - } - } - RegionSelection rs = get_regions_from_selection_and_entered (); - if (mouse_mode != MouseRange && rs.empty()) { + if ( selection->time.length() == 0 && rs.empty()) { return; } @@ -3317,7 +3311,7 @@ Editor::duplicate_range (bool with_dialog) times = adjustment.get_value(); } - if (mouse_mode == MouseRange) { + if (selection->time.length() != 0) { duplicate_selection (times); } else { duplicate_some_regions (rs, times); |