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
This commit is contained in:
parent
00e092707b
commit
22dec51f90
@ -630,12 +630,16 @@ void wxLogChain::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
|
|||||||
{
|
{
|
||||||
// bogus cast just to access protected DoLog
|
// bogus cast just to access protected DoLog
|
||||||
((wxLogChain *)m_logOld)->DoLog(level, szString, t);
|
((wxLogChain *)m_logOld)->DoLog(level, szString, t);
|
||||||
|
|
||||||
|
m_bHasMessages |= m_logOld->HasPendingMessages();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_logNew && m_logNew != this )
|
if ( m_logNew && m_logNew != this )
|
||||||
{
|
{
|
||||||
// as above...
|
// as above...
|
||||||
((wxLogChain *)m_logNew)->DoLog(level, szString, t);
|
((wxLogChain *)m_logNew)->DoLog(level, szString, t);
|
||||||
|
|
||||||
|
m_bHasMessages |= m_logNew->HasPendingMessages();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user