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 void
MidiRegionView::clear_selection () MidiRegionView::clear_selection ()
{ {
clear_selection_internal(); clear_note_selection ();
PublicEditor& editor(trackview.editor());
editor.get_selection().remove (this);
_mouse_state = None; _mouse_state = None;
} }
@ -2151,6 +2149,14 @@ MidiRegionView::clear_selection_internal ()
_selection.clear(); _selection.clear();
} }
void
MidiRegionView::clear_note_selection ()
{
clear_selection_internal ();
PublicEditor& editor(trackview.editor());
editor.get_selection().remove (this);
}
void void
MidiRegionView::unique_select(NoteBase* ev) MidiRegionView::unique_select(NoteBase* ev)
{ {

View File

@ -370,7 +370,7 @@ public:
protected: protected:
friend class Editor; 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_fine () { change_note_lengths (true, false, Temporal::Beats(), true, false); }
void move_note_starts_earlier () { change_note_lengths (false, false, Temporal::Beats(), true, false); } void move_note_starts_earlier () { change_note_lengths (false, false, Temporal::Beats(), true, false); }