use Playlist::rdiff_and_add_command() rather than explicit code
This commit is contained in:
parent
90e4adfed1
commit
963d2b6906
@ -2498,13 +2498,11 @@ RegionRippleDrag::finished (GdkEvent* event, bool movement_occurred)
|
||||
(*pi)->freeze();
|
||||
}
|
||||
|
||||
remove_unselected_from_views (prev_amount, true);
|
||||
remove_unselected_from_views (prev_amount);
|
||||
|
||||
for (pi = playlists.begin(); pi != playlists.end(); ++pi) {
|
||||
(*pi)->thaw();
|
||||
vector<Command*> cmds;
|
||||
(*pi)->rdiff (cmds);
|
||||
_editor->session()->add_commands (cmds);
|
||||
(*pi)->rdiff_and_add_command (_editor->session());
|
||||
}
|
||||
|
||||
// other modified playlists are added to undo by RegionMoveDrag::finished()
|
||||
|
Loading…
Reference in New Issue
Block a user