1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 2720 - Residual

Handling of failed to open.  Now if we fail, we abandon that connection,
rather than plough on.
This commit is contained in:
James Crook
2021-03-27 17:54:14 +00:00
parent 6435f595cc
commit e19d1f2340

View File

@@ -1800,7 +1800,8 @@ bool ProjectFileIO::LoadProject(const FilePath &fileName, bool ignoreAutosave)
->GetActiveBlockIDs();
if (blockids.size() > 0)
{
if (!DeleteBlocks(blockids, true))
success = DeleteBlocks(blockids, true);
if (!success)
{
return false;
}
@@ -1823,7 +1824,8 @@ bool ProjectFileIO::LoadProject(const FilePath &fileName, bool ignoreAutosave)
// we use that knowledge to determine if this file is an unsaved/temporary
// file or a permanent project file
wxString result;
if (!GetValue("SELECT Count(*) FROM project;", result))
success = GetValue("SELECT Count(*) FROM project;", result);
if (!success)
{
return false;
}