X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79956162766e79085ab8ac4c59a621fe1c0505fe..efd1393bccefbb6cf12f82d5e10a4fb6080e6702:/src/mgl/evtloop.cpp?ds=sidebyside diff --git a/src/mgl/evtloop.cpp b/src/mgl/evtloop.cpp index 7f3971cfe5..d19bd8639c 100644 --- a/src/mgl/evtloop.cpp +++ b/src/mgl/evtloop.cpp @@ -152,6 +152,10 @@ void wxEventLoop::Exit(int rc) m_impl->SetExitCode(rc); m_impl->SetKeepLooping(FALSE); + + // Send a dummy event so that the app won't block in EVT_halt if there + // are no user-generated events in the queue: + EVT_post(0, EVT_USEREVT, 0, 0); } // ----------------------------------------------------------------------------