From efc95152d5e5ce3cc11a9ca38c81a57e788a9360 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 20 Aug 2019 13:41:00 -0400 Subject: [PATCH] Bug2191: Opening project with silent blocks should not warn... ... Bug began at ca0fb190e6a98a8c44c8c2ed7fe2422c47a22845 --- src/DirManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DirManager.cpp b/src/DirManager.cpp index 80688e9bb..f7fcea5d9 100644 --- a/src/DirManager.cpp +++ b/src/DirManager.cpp @@ -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