diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-05 18:00:05 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-05 18:00:05 -0600 |
commit | 668ff4b6385c654731b9955fbfbb693d1a5d42d3 (patch) | |
tree | eaaeeb92ccf801671d88d2efaf05438183041845 /gtk2_ardour | |
parent | 1d33ed5acab6ec0b2d2b0ded4bbc646571668d3d (diff) |
if setting the selected MIDI region view to the currently selected MRV, do nothing
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 6042c10bad..b7ce207a0c 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -920,6 +920,12 @@ void Editor::set_selected_midi_region_view (MidiRegionView& mrv) { /* clear note selection in all currently selected MidiRegionViews */ + + if (get_selection().regions.contains (&mrv) && get_selection().regions.size() == 1) { + /* Nothing to do */ + return; + } + midi_action (&MidiRegionView::clear_note_selection); get_selection().set (&mrv); } |