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:
parent
4209c8150a
commit
5a61428d4d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue