summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2019-02-07 13:29:59 -0600
committerBen Loftis <ben@harrisonconsoles.com>2019-02-12 11:34:50 -0600
commit37d28c63db9d10e50fc34bbedea016e3949227b1 (patch)
treec329a57dfa7be13e82cd0649072cafc75d2b1e17 /gtk2_ardour/editor_selection.cc
parent983875ffc8c6adb529a10f88e539ecef359ead1d (diff)
Selection-after-split behavior ( libardour part )
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index 227eaa4a63..f8de6084ca 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -1585,6 +1585,13 @@ Editor::region_selection_changed ()
nudge_forward_button.set_name ("generic button");
nudge_backward_button.set_name ("generic button");
}
+
+ //there are a few global Editor->Select actions which select regions even if you aren't in Object mode.
+ //if regions are selected, we must always force the mouse mode to Object...
+ //... otherwise the user is confusingly left with selected regions that can't be manipulated.
+ if (!selection->regions.empty()) {
+ set_mouse_mode( MouseObject, false );
+ }
}
void