diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-28 15:07:41 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-28 15:07:41 +0200 |
commit | cbe1f5d3956f878caeb6cb2aa1dc9cf97e773116 (patch) | |
tree | 9535e0de8ee39fe62340668735b6a8f2098d0134 /gtk2_ardour/editor_selection.cc | |
parent | 3cda0e2a93313c22d9c69d17a21bcbe3ba4510aa (diff) |
extend 3cda0e2a: Don't switch to range-mode if not needed for similar OPs.
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 3b31def60f..770bfe9c1f 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1763,7 +1763,9 @@ Editor::set_selection_from_range (Location& loc) selection->set (loc.start(), loc.end()); commit_reversible_selection_op (); - set_mouse_mode (Editing::MouseRange, false); + if (!get_smart_mode () || mouse_mode != Editing::MouseObject) { + set_mouse_mode (MouseRange, false); + } } void @@ -2022,8 +2024,11 @@ Editor::select_range_between () return; } + if (!get_smart_mode () || mouse_mode != Editing::MouseObject) { + set_mouse_mode (MouseRange, false); + } + begin_reversible_selection_op (X_("Select Range Between")); - set_mouse_mode (MouseRange); selection->set (start, end); commit_reversible_selection_op (); } |