From 8a26e561c52d7b4afffc5dd10a464cace9ff2950 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 21 Nov 2015 22:45:26 +0100 Subject: [PATCH] cont'd 20262abe (keep all playlists) --- libs/ardour/session_playlists.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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