Fix undo/redo when moving regions to a different track

This was broken during development of ripple-all.
First explicit rdiff_and_add_command() was used, but
when that was reverted later, the original stateful_diff
was not restored.

989408626d
1ccf272d58
This commit is contained in:
Robin Gareus 2022-03-21 18:44:27 +01:00
parent b4cf61304c
commit f6646eaa2d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 3 additions and 0 deletions

View File

@ -2054,6 +2054,9 @@ RegionMoveDrag::finished_no_copy (
_editor->selection->set (new_views);
}
/* write commands for the accumulated diffs for all our modified playlists */
add_stateful_diff_commands_for_playlists (modified_playlists);
_editor->commit_reversible_command ();
/* We have futzed with the layering of canvas items on our streamviews.