use the currently active event loop instead of the main one in WakeUpIdle()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-17 14:33:39 +00:00
parent 80ccb34688
commit 53cda845db

View File

@@ -325,8 +325,10 @@ bool wxAppConsoleBase::Yield(bool onlyIfNeeded)
void wxAppConsoleBase::WakeUpIdle() void wxAppConsoleBase::WakeUpIdle()
{ {
if ( m_mainLoop ) wxEventLoopBase * const loop = wxEventLoopBase::GetActive();
m_mainLoop->WakeUp();
if ( loop )
loop->WakeUp();
} }
bool wxAppConsoleBase::ProcessIdle() bool wxAppConsoleBase::ProcessIdle()