diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-12 13:08:38 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-12 13:08:38 -0600 |
commit | 48886565cf3bc02e0508d2cc485be4f62289f6da (patch) | |
tree | 89ee350f5250886153c01ff4b1fcb3a68702146b | |
parent | 7a0427201cf206f27e026f9f288edf6608f9a025 (diff) |
fix mouse-audition playback of a given region
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index b7ce207a0c..b93223cebe 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1634,7 +1634,14 @@ Editor::region_selection_changed () //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() && !internal_editing()) { - set_mouse_mode (MouseObject, false); + + /* if in MouseAudition and there's just 1 region selected + * (i.e. we just clicked on it), leave things as they are + */ + + if (selection->regions.size() > 1 || mouse_mode != Editing::MouseAudition) { + set_mouse_mode (MouseObject, false); + } } } |