X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0728199b911be9095406cf05059a5a180e707778..19c7ac3d3bf1ac2113505a805a79c40ce3db1f5b:/src/mgl/app.cpp?ds=sidebyside diff --git a/src/mgl/app.cpp b/src/mgl/app.cpp index c0338c7834..0c0a1ac7d4 100644 --- a/src/mgl/app.cpp +++ b/src/mgl/app.cpp @@ -48,11 +48,9 @@ void wxApp::Exit() // wxYield //----------------------------------------------------------------------------- -static bool gs_inYield = false; - bool wxApp::Yield(bool onlyIfNeeded) { - if ( gs_inYield ) + if ( m_isInsideYield ) { if ( !onlyIfNeeded ) { @@ -70,7 +68,7 @@ bool wxApp::Yield(bool onlyIfNeeded) } #endif // wxUSE_THREADS - gs_inYield = true; + m_isInsideYield = true; wxLog::Suspend(); @@ -88,7 +86,7 @@ bool wxApp::Yield(bool onlyIfNeeded) wxLog::Resume(); - gs_inYield = false; + m_isInsideYield = false; return true; }