]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed flushing of secondary log target in wxLogChain (patch 985711)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jul 2004 16:02:54 +0000 (16:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jul 2004 16:02:54 +0000 (16:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index d9a6c7eb30d9023fdf79c2f813b31d1c12552df3..98e8b62cd966ea2350d5f6173edb9b024544fe25 100644 (file)
@@ -630,12 +630,16 @@ void wxLogChain::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
     {
         // bogus cast just to access protected DoLog
         ((wxLogChain *)m_logOld)->DoLog(level, szString, t);
+
+        m_bHasMessages |= m_logOld->HasPendingMessages();
     }
 
     if ( m_logNew && m_logNew != this )
     {
         // as above...
         ((wxLogChain *)m_logNew)->DoLog(level, szString, t);
+
+        m_bHasMessages |= m_logNew->HasPendingMessages();
     }
 }