X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80eee8378f6b6e8b9ecae46062c2b66ff4469f48..36b52591b51e425b57f60e1cbed9a51d2f5767d9:/src/common/evtloopcmn.cpp?ds=sidebyside diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index 300a1885d1..aa1aca9cbc 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -139,7 +139,7 @@ int wxEventLoopManual::Run() // generate and process idle events for as long as we don't // have anything else to do - while ( !Pending() && ProcessIdle() ) + while ( !Pending() && ProcessIdle() && !m_shouldExit ) ; // if the "should exit" flag is set, the loop should terminate