X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33957ef519bf47c77229bb9b07f1763bcac5d055..1f51673bb890f637a1979df92ff939935a1dd460:/src/generic/progdlgg.cpp?ds=sidebyside diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 224f40a593..68b58cada4 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -411,6 +411,9 @@ wxProgressDialog::Update(int value, const wxString& newmsg, bool *skip) // should be no side-effects wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_UI); + // NOTE: this call results in a new event loop being created + // and to a call to ProcessPendingEvents() (which may generate + // unwanted re-entrancies). (void)ShowModal(); } else // auto hide @@ -684,8 +687,6 @@ void wxProgressDialog::UpdateMessage(const wxString &newmsg) { m_msg->SetLabel(newmsg); - Fit(); // adapt to the new label size - // allow the window to repaint: // NOTE: since we yield only for UI events with this call, there // should be no side-effects