mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
clearing note selection in internal edit mode also deselects regions
This commit is contained in:
parent
8386874a03
commit
6bd12a4e83
2 changed files with 10 additions and 4 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue