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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user