don't hang forever in Dispatch() if there is no event loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -313,7 +313,7 @@ bool wxAppBase::Dispatch()
|
||||
// see comment in Pending()
|
||||
wxEventLoop * const loop = wxEventLoop::GetActive();
|
||||
|
||||
return loop ? loop->Dispatch() : true;
|
||||
return loop && loop->Dispatch();
|
||||
#else // wxUSE_EVTLOOP_IN_APP
|
||||
return true;
|
||||
#endif // wxUSE_EVTLOOP_IN_APP/!wxUSE_EVTLOOP_IN_APP
|
||||
|
Reference in New Issue
Block a user