X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a9379d7b0f86e5fbb82f175cac4b9fbb1e3fde9..d8812c6e0e780fb2dae99bc352c5061f58793e14:/src/msw/app.cpp diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 646470fe6f..56af196bdd 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -1015,10 +1015,7 @@ int wxApp::GetShell32Version() bool wxApp::Yield(bool onlyIfNeeded) { - // MT-FIXME - static bool s_inYield = false; - - if ( s_inYield ) + if ( m_isInsideYield ) { if ( !onlyIfNeeded ) { @@ -1029,8 +1026,8 @@ bool wxApp::Yield(bool onlyIfNeeded) } // set the flag and don't forget to reset it before returning - s_inYield = true; - wxON_BLOCK_EXIT_SET(s_inYield, false); + m_isInsideYield = true; + wxON_BLOCK_EXIT_SET(m_isInsideYield, false); #if wxUSE_LOG