mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 17:41:13 +02:00
Bug2191: Opening project with silent blocks should not warn...
... Bug began at ca0fb190e6
This commit is contained in:
@@ -1344,10 +1344,12 @@ bool DirManager::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
|
||||
// BuildFromXML failed, or we didn't find a valid blockfile tag.
|
||||
return false;
|
||||
|
||||
if (!pBlockFile->GetFileName().name.IsOk())
|
||||
if (!pBlockFile->GetFileName().name.IsOk()) {
|
||||
// Silent blocks don't actually have a file associated, so
|
||||
// we don't need to worry about the hash table at all
|
||||
target = pBlockFile;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check the length here so we don't have to do it in each BuildFromXML method.
|
||||
if ((mMaxSamples != ~size_t(0)) && // is initialized
|
||||
|
Reference in New Issue
Block a user