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
1 changed files with 3 additions and 2 deletions

View File

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