+void wxProgressDialog::DoAfterUpdate()
+{
+ wxCHECK_RET(wxEventLoopBase::GetActive(),
+ "wxProgressDialog::DoAfterUpdate needs a running event loop");
+
+ // allow the window to repaint:
+ // NOTE: since we yield only for UI events with this call, there
+ // should be no side-effects
+ wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_UI);
+}
+