1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 06:01:13 +02:00

Don't stop recovering projects in case one of them fails...

... This matters now that ProjectManager::OpenProject really can return null.
This commit is contained in:
Paul Licameli 2021-05-22 15:32:11 -04:00
parent 4209c8150a
commit 5a61428d4d

View File

@ -421,6 +421,7 @@ static bool RecoverAllProjects(const FilePaths &files,
{ {
// Open a project window for each auto save file // Open a project window for each auto save file
wxString filename; wxString filename;
bool result = true;
for (auto &file: files) for (auto &file: files)
{ {
@ -432,11 +433,11 @@ static bool RecoverAllProjects(const FilePaths &files,
// Open project. // Open project.
if (ProjectManager::OpenProject(proj, file, false, true) == nullptr) if (ProjectManager::OpenProject(proj, file, false, true) == nullptr)
{ {
return false; result = false;
} }
} }
return true; return result;
} }
static void DiscardAllProjects(const FilePaths &files) static void DiscardAllProjects(const FilePaths &files)