midi_region_view: rename 'apply_diff' to 'apply_note_diff' for clarity

these functions operate on the _note_diff_command,
 which is explicitly a NoteDiff,  not a generic DiffCommand

also fix a few thinkos where the ambiguous naming led to errors
This commit is contained in:
Ben Loftis 2022-05-09 14:42:07 -05:00
parent 133600d5dc
commit 1fa7a72f72
3 changed files with 32 additions and 28 deletions

View file

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