1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 00:29:41 +02:00

Comment about missing/broken ERR_HANDLING.

This commit is contained in:
James Crook 2017-02-24 17:21:17 +00:00
parent 2a4794760c
commit 1ffe7367a3

View File

@ -514,6 +514,12 @@ bool DirManager::SetProject(wxString& newProjPath, wxString& newProjName, const
{
BlockFilePtr b = iter->second.lock();
if (b) {
// FIXME: TRAP_ERR
// JKC: The 'success' variable and recovery strategy looks
// broken/bogus to me. Would need to be using &= to catch
// failure in one of the copies/moves. Besides which,
// our temporary files are going to be deleted when we exit
// anyway, if saving from temporary to named project.
if (b->IsLocked())
success = CopyToNewProjectDirectory( &*b ), copying = true;
else{