X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34138703c3997ce676a1e713d9ff9eb020640da7..72cb6ff3b3f6aa8f9ed8a3bf10e334f8eb50be99:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 94bf306c74..e1840f24ad 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -421,6 +421,9 @@ void wxLogGui::Flush() if ( !m_bHasMessages ) return; + // do it right now to block any new calls to Flush() while we're here + m_bHasMessages = FALSE; + // @@@ ugly... // concatenate all strings (but not too many to not overfill the msg box) @@ -449,7 +452,6 @@ void wxLogGui::Flush() } // no undisplayed messages whatsoever - m_bHasMessages = m_bErrors = FALSE; m_aMessages.Empty(); }