son't try to select non-existent notes after editing (and thus crash).

- should fix 7135
This commit is contained in:
nick_m 2016-11-23 04:55:56 +11:00
parent 3a362563a4
commit cef341631b

View File

@ -223,7 +223,10 @@ EditNoteDialog::done (int r)
_region_view->apply_diff ();
list<Evoral::event_id_t> notes;
for (set<NoteBase*>::iterator i = _events.begin(); i != _events.end(); ++i) {
(*i)->set_selected ((*i)->selected()); // change color
notes.push_back ((*i)->note()->id());
}
_region_view->select_notes (notes);
}