slight adaption, shorter max wait
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -304,11 +304,13 @@ int wxCFEventLoop::DoProcessEvents()
|
|||||||
{
|
{
|
||||||
if ( m_shouldWaitForEvent )
|
if ( m_shouldWaitForEvent )
|
||||||
{
|
{
|
||||||
int handled = DispatchTimeout( 10000 );
|
int handled = DispatchTimeout( 1000 );
|
||||||
wxASSERT_MSG( handled == 1, "No Event Available");
|
wxASSERT_MSG( handled == 1, "No Event Available");
|
||||||
m_shouldWaitForEvent = false;
|
m_shouldWaitForEvent = false;
|
||||||
|
return handled;
|
||||||
}
|
}
|
||||||
return DispatchTimeout( 0 );
|
else
|
||||||
|
return DispatchTimeout( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxCFEventLoop::Dispatch()
|
bool wxCFEventLoop::Dispatch()
|
||||||
|
Reference in New Issue
Block a user