From b0c162879d484a3e36785df2dcd29335c1fabab1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 25 Oct 2022 12:51:08 -0600 Subject: [PATCH] fix error with saving MIDI after forking MIDI region when we save a MidiModel to a new MIDI source, that does not change the edited status of the Model. --- libs/ardour/midi_model.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index 295a78fa87..85d74fd020 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -1245,7 +1245,9 @@ MidiModel::write_to (boost::shared_ptr source, source->mark_streaming_write_completed(source_lock); - set_edited(false); + /* no call to set_edited() because writing to "newsrc" doesn't remove + * the need to write to "our own" source in ::sync_to_source() + */ return true; }