1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

Bug2191: Opening project with silent blocks should not warn...

... Bug began at ca0fb190e6a98a8c44c8c2ed7fe2422c47a22845
This commit is contained in:
Paul Licameli 2019-08-20 13:41:00 -04:00
parent 0c1b969c12
commit efc95152d5

View File

@ -1344,10 +1344,12 @@ bool DirManager::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
// BuildFromXML failed, or we didn't find a valid blockfile tag. // BuildFromXML failed, or we didn't find a valid blockfile tag.
return false; return false;
if (!pBlockFile->GetFileName().name.IsOk()) if (!pBlockFile->GetFileName().name.IsOk()) {
// Silent blocks don't actually have a file associated, so // Silent blocks don't actually have a file associated, so
// we don't need to worry about the hash table at all // we don't need to worry about the hash table at all
target = pBlockFile;
return true; return true;
}
// Check the length here so we don't have to do it in each BuildFromXML method. // Check the length here so we don't have to do it in each BuildFromXML method.
if ((mMaxSamples != ~size_t(0)) && // is initialized if ((mMaxSamples != ~size_t(0)) && // is initialized