edit note dialog: store note IDs before note diff, in case they change during it

This commit is contained in:
Paul Davis
2025-11-24 21:35:09 -07:00
parent 4bb46a0b75
commit c2c411a982

View File

@@ -229,16 +229,16 @@ EditNoteDialog::done (int r)
}
list<Evoral::event_id_t> notes;
for (set<NoteBase*>::iterator i = _events.begin(); i != _events.end(); ++i) {
notes.push_back ((*i)->note()->id());
}
if (had_change) {
_region_view->apply_note_diff ();
} else {
_region_view->abort_note_diff ();
}
list<Evoral::event_id_t> notes;
for (set<NoteBase*>::iterator i = _events.begin(); i != _events.end(); ++i) {
notes.push_back ((*i)->note()->id());
}
_region_view->select_notes (notes, true);
}