midi_list_editor: adopt midi_model diff function renaming (gtk part)

This commit is contained in:
Ben Loftis 2022-05-09 11:58:59 -05:00
parent f50d5507c3
commit f9d73957ce
1 changed files with 4 additions and 4 deletions

View File

@ -362,7 +362,7 @@ MidiListEditor::scroll_event (GdkEventScroll* ev)
}
}
m->apply_command (*_session, cmd);
m->apply_diff_command_as_commit (*_session, cmd);
/* reset selection to be as it was before we rebuilt */
@ -465,7 +465,7 @@ MidiListEditor::key_release (GdkEventKey* ev)
note = (*iter)[columns._note];
copy.reset (new NoteType (*note.get()));
cmd->add (copy);
m->apply_command (*_session, cmd);
m->apply_diff_command_as_commit (*_session, cmd);
/* model has been redisplayed by now */
path.next ();
/* select, start editing column 2 (note) */
@ -531,7 +531,7 @@ MidiListEditor::delete_selected_note ()
cmd->remove (*i);
}
m->apply_command (*_session, cmd);
m->apply_diff_command_as_commit (*_session, cmd);
}
void
@ -729,7 +729,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
}
}
m->apply_command (*_session, cmd);
m->apply_diff_command_as_commit (*_session, cmd);
/* model has been redisplayed by now */
/* keep selected row(s), move cursor there, don't continue editing */