midi selection: implement MidiRegionView::set_selected()
This allows an MRV to clear its own selection of notes when the region itself is deselected. This should help #8729 and #8899
This commit is contained in:
parent
789abc561d
commit
a0d08232ad
|
@ -2582,6 +2582,16 @@ MidiRegionView::remove_from_selection (NoteBase* ev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
MidiRegionView::set_selected (bool selected)
|
||||||
|
{
|
||||||
|
if (!selected) {
|
||||||
|
clear_selection_internal ();
|
||||||
|
}
|
||||||
|
|
||||||
|
RegionView::set_selected (selected);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
MidiRegionView::add_to_selection (NoteBase* ev)
|
MidiRegionView::add_to_selection (NoteBase* ev)
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,6 +96,8 @@ public:
|
||||||
|
|
||||||
void init (bool wfd);
|
void init (bool wfd);
|
||||||
|
|
||||||
|
void set_selected (bool yn);
|
||||||
|
|
||||||
const boost::shared_ptr<ARDOUR::MidiRegion> midi_region() const;
|
const boost::shared_ptr<ARDOUR::MidiRegion> midi_region() const;
|
||||||
|
|
||||||
inline MidiTimeAxisView* midi_view() const
|
inline MidiTimeAxisView* midi_view() const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user