mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Emit SelectionCleared() when unique-selecting the first
note in a region, so that other regions clear their selections. git-svn-id: svn://localhost/ardour2/branches/3.0@12472 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
dfd842812c
commit
cc12b6bba5
1 changed files with 8 additions and 0 deletions
|
|
@ -1941,6 +1941,14 @@ MidiRegionView::clear_selection_except (ArdourCanvas::CanvasNoteEvent* ev, bool
|
|||
{
|
||||
bool changed = false;
|
||||
|
||||
if (ev && !ev->selected ()) {
|
||||
/* We're selecting this note, so the selection has changed; if
|
||||
there is nothing else currently selected, the loop below will
|
||||
not pick up on the change.
|
||||
*/
|
||||
changed = true;
|
||||
}
|
||||
|
||||
for (Selection::iterator i = _selection.begin(); i != _selection.end(); ) {
|
||||
if ((*i) != ev) {
|
||||
Selection::iterator tmp = i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue