From: Vadim Zeitlin Date: Fri, 17 Jul 2009 14:33:39 +0000 (+0000) Subject: use the currently active event loop instead of the main one in WakeUpIdle() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/53cda845db64db0d358f69443cf7edeb2360a048 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 --- diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 269be5b575..14a4cf64da 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -325,8 +325,10 @@ bool wxAppConsoleBase::Yield(bool onlyIfNeeded) void wxAppConsoleBase::WakeUpIdle() { - if ( m_mainLoop ) - m_mainLoop->WakeUp(); + wxEventLoopBase * const loop = wxEventLoopBase::GetActive(); + + if ( loop ) + loop->WakeUp(); } bool wxAppConsoleBase::ProcessIdle()