13
0

clearing note selection in internal edit mode also deselects regions

This commit is contained in:
Paul Davis 2021-01-18 15:20:58 -07:00
parent 8386874a03
commit 6bd12a4e83
2 changed files with 10 additions and 4 deletions

View File

@ -2133,9 +2133,7 @@ MidiRegionView::delete_note (boost::shared_ptr<NoteType> n)
void
MidiRegionView::clear_selection ()
{
clear_selection_internal();
PublicEditor& editor(trackview.editor());
editor.get_selection().remove (this);
clear_note_selection ();
_mouse_state = None;
}
@ -2151,6 +2149,14 @@ MidiRegionView::clear_selection_internal ()
_selection.clear();
}
void
MidiRegionView::clear_note_selection ()
{
clear_selection_internal ();
PublicEditor& editor(trackview.editor());
editor.get_selection().remove (this);
}
void
MidiRegionView::unique_select(NoteBase* ev)
{

View File

@ -370,7 +370,7 @@ public:
protected:
friend class Editor;
void clear_note_selection () { clear_selection_internal(); }
void clear_note_selection ();
void move_note_starts_earlier_fine () { change_note_lengths (true, false, Temporal::Beats(), true, false); }
void move_note_starts_earlier () { change_note_lengths (false, false, Temporal::Beats(), true, false); }