]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
a micro bug (but which was enough to break regtest sample) corrected
[wxWidgets.git] / src / common / log.cpp
index 94bf306c7401ca72b66ba0c7f999451db549d40f..e1840f24ad064b1372915710b15f1f3385ae3c1c 100644 (file)
@@ -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();
 }