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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user