Flush log events in console applications as well.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Aug 2009 23:51:24 +0000 (23:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Aug 2009 23:51:24 +0000 (23:51 +0000)
commit0055cc0e4a21e460eab83a79269f3fe5b0037239
treec6ff32a4e95a313f9cdb9e06d9e676b0b88c19e8
parentafaf3b7037485c660e4c44129a04339b67e073d3
Flush log events in console applications as well.

Move wxLog::FlushActive() call from wxAppBase::ProcessIdle() to
wxAppConsoleBase::ProcessIdle().

Now that log messages from background threads are queued until the main thread
log target is flushed, we need to call wxLog::FlushActive() periodically to
see them at all, see #11115.

Besides, even though the default log target in console applications outputs
the messages immediately without queuing them, it is quite possible to use a
non-default target which does require flushing so this change also fixes a
potential bug with non-default log targets.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/appbase.cpp
src/common/appcmn.cpp