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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user