diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-01 17:37:27 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-01 17:39:13 -0600 |
commit | 575c8184826a757e0260c3268c8321ef954f9dd9 (patch) | |
tree | e1df849aa436058ebc6a5f355ec404f13b91dddd /gtk2_ardour/editor_mouse.cc | |
parent | 2326fb163826aeed61b24026f7c4f1f65d3ee5af (diff) |
when a MIDI region has a note selected with none previously, cancel existing MIDI region/note selection
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 9ed46a092b..ef5fc526f6 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -379,6 +379,15 @@ Editor::mouse_mode_toggled (MouseMode m) Keyboard::magic_widget_drop_focus (); } + if (was_internal && !internal_editing()) { + /* drop any selected regions so that they in turn + * redraw any selected notes. This essentially the + * opposite of ::catch_up_on_midi_selection() called + * above. + */ + get_selection().clear_regions (); + } + update_all_enter_cursors (); MouseModeChanged (); /* EMIT SIGNAL */ |