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:
Vadim Zeitlin
2003-09-16 21:29:32 +00:00
parent 5b3b52ef31
commit d1fc6f0658

View File

@@ -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