From: Vadim Zeitlin Date: Sun, 25 Jul 2004 16:02:54 +0000 (+0000) Subject: fixed flushing of secondary log target in wxLogChain (patch 985711) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/22dec51f90235d04277b7f2e2f5fee99ed4753b9?ds=sidebyside fixed flushing of secondary log target in wxLogChain (patch 985711) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/log.cpp b/src/common/log.cpp index d9a6c7eb30..98e8b62cd9 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -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(); } }