diff --git a/libs/ardour/session_playlists.cc b/libs/ardour/session_playlists.cc index cc2f1b25ab..649d42902b 100644 --- a/libs/ardour/session_playlists.cc +++ b/libs/ardour/session_playlists.cc @@ -333,10 +333,16 @@ SessionPlaylists::maybe_delete_unused (boost::function > playlists_tbd; - bool delete_all = false; + bool delete_remaining = false; + bool keep_remaining = false; for (List::iterator x = unused_playlists.begin(); x != unused_playlists.end(); ++x) { - if (delete_all) { + + if (keep_remaining) { + break; + } + + if (delete_remaining) { playlists_tbd.push_back (*x); continue; } @@ -348,9 +354,14 @@ SessionPlaylists::maybe_delete_unused (boost::function