X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d24b23b76eca69c0faecf6146f52f6d8f93d4b78..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/gtk1/app.cpp diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 8932e2198d..4d25eb73de 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -136,9 +136,11 @@ bool wxApp::Yield(bool onlyIfNeeded) // never finish. wxTheApp->RemoveIdleTag(); +#if wxUSE_LOG // disable log flushing from here because a call to wxYield() shouldn't // normally result in message boxes popping up &c wxLog::Suspend(); +#endif while (gtk_events_pending()) gtk_main_iteration(); @@ -151,8 +153,10 @@ bool wxApp::Yield(bool onlyIfNeeded) // return value of Processidle(). ProcessIdle(); +#if wxUSE_LOG // let the logs be flashed again wxLog::Resume(); +#endif wxIsInsideYield = FALSE;