mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
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:
parent
133600d5dc
commit
1fa7a72f72
3 changed files with 32 additions and 28 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue