Cut/Copy Section also needs to operate on unused playlists

This commit is contained in:
Robin Gareus
2023-06-08 20:42:07 +02:00
parent 61b41fd5d0
commit 49aa046824

View File

@@ -7251,7 +7251,10 @@ Session::cut_copy_section (timepos_t const& start, timepos_t const& end, timepos
bool automation_follows = Config->get_automation_follows_regions ();
Config->set_automation_follows_regions (false);
for (auto& pl : _playlists->playlists) {
vector<std::shared_ptr<Playlist>> playlists;
_playlists->get (playlists);
for (auto& pl : playlists) {
pl->freeze ();
pl->clear_changes ();
pl->clear_owned_changes ();