1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 14:50:06 +02:00

Bug 137 (P2) - fix regression caused by r11118 where orphan files weren't detected

This commit is contained in:
mchinen 2011-05-17 21:15:17 +00:00
parent 8c7f342d40
commit 391920624d

View File

@ -912,7 +912,7 @@ BlockFile *DirManager::NewODDecodeBlockFile(
bool DirManager::ContainsBlockFile(BlockFile *b)
{
return b ? mBlockFileHash[b->GetFileName().GetName()] == b : NULL;
return b ? mBlockFileHash[b->GetFileName().GetName()] == b : false;
}
bool DirManager::ContainsBlockFile(wxString filepath)
@ -1726,7 +1726,7 @@ void DirManager::FindOrphanBlockFiles(
}
// Ignore it if it exists in the clipboard (from a previously closed project)
if (clipboardDM && clipboardDM->ContainsBlockFile(fullname.GetFullPath()))
if (!(clipboardDM && clipboardDM->ContainsBlockFile(basename)))
orphanFilePathArray.Add(fullname.GetFullPath());
}
}