diff --git a/src/dfb/app.cpp b/src/dfb/app.cpp index eadd69a205..dfb896d7f0 100644 --- a/src/dfb/app.cpp +++ b/src/dfb/app.cpp @@ -135,7 +135,9 @@ bool wxApp::Yield(bool onlyIfNeeded) s_inYield = true; +#if wxUSE_LOG wxLog::Suspend(); +#endif // wxUSE_LOG // A guarentee that there will be an active event loop: wxEventLoopGuarantor dummyLoopIfNeeded; @@ -146,7 +148,9 @@ bool wxApp::Yield(bool onlyIfNeeded) // OnUpdateUI() which is a nice (and desired) side effect) while ( ProcessIdle() ) {} +#if wxUSE_LOG wxLog::Resume(); +#endif // wxUSE_LOG s_inYield = false;