mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
Bug2191: Opening project with silent blocks should not warn...
... Bug began at ca0fb190e6a98a8c44c8c2ed7fe2422c47a22845
This commit is contained in:
parent
0c1b969c12
commit
efc95152d5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user