From f6646eaa2d2f790c5936cccbc65fe1dafc57be50 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 21 Mar 2022 18:44:27 +0100 Subject: [PATCH] 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. 989408626d6f0babe62dcf7b4dcf00709f5f0411 1ccf272d58697cd712c594357a0c4c7abee404c7 --- gtk2_ardour/editor_drag.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index b76167c35e..9f92307c23 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -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.