]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
Correctly determine best wxPropertyGrid width.
[wxWidgets.git] / src / common / appbase.cpp
index 4851b5ac8041109aa62f1e34b4c322ac67d03e80..c2d019fd253b4b9b7c08dc2aca1fe5b3d3a08efe 100644 (file)
@@ -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)