X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..890defb4f3a0012a296c69949bf5f93075743e8f:/src/common/appbase.cpp diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 4851b5ac80..c2d019fd25 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -340,6 +340,12 @@ bool wxAppConsoleBase::ProcessIdle() event.SetEventObject(this); ProcessEvent(event); +#if wxUSE_LOG + // flush the logged messages if any (do this after processing the events + // which could have logged new messages) + wxLog::FlushActive(); +#endif + return event.MoreRequested(); } @@ -505,7 +511,7 @@ void wxAppConsoleBase::DeletePendingEvents() bool wxAppConsoleBase::IsScheduledForDestruction(wxObject *object) const { - return wxPendingDelete.Member(object); + return wxPendingDelete.Member(object) != NULL; } void wxAppConsoleBase::ScheduleForDestruction(wxObject *object)