Yet another fix for not existing event loop under Mac
The previous commit fixed never exiting the event loop in GUI Mac modal
loops but at the price of breaking it for Mac console applications as
Dispatch() never returns for them if there are no more events.
Finally, just don't call Dispatch() at all here, just as it wasn't done
until 9caa3d5d8e
and keep only the changes
sufficient for dispatching the pending events and making CallAfter()
work in console applications.
This commit is contained in:
parent
e2609f3c21
commit
69e33a6657
@ -301,11 +301,6 @@ void wxCFEventLoop::OSXDoRun()
|
||||
hasMoreEvents = true;
|
||||
}
|
||||
|
||||
if ( Dispatch() )
|
||||
{
|
||||
hasMoreEvents = true;
|
||||
}
|
||||
|
||||
if ( !hasMoreEvents )
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user