mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 06:40:08 +02:00
Bug 137 (P2) - fix regression caused by r11118 where orphan files weren't detected
This commit is contained in:
parent
8c7f342d40
commit
391920624d
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user