mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
if setting the selected MIDI region view to the currently selected MRV, do nothing
This commit is contained in:
parent
1d33ed5aca
commit
668ff4b638
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue