X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d6854a63ad9eeb10434639eee70d75f3c55e5eb..b916f809336755620b010293637b12763f01455d:/src/generic/progdlgg.cpp diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 94109c5660..33a8d648fc 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -89,6 +89,9 @@ wxProgressDialog::wxProgressDialog(wxString const &title, int style) : wxDialog(parent, -1, title) { + // we may disappear at any moment, let the others know about it + SetExtraStyle(GetExtraStyle() | wxWS_EX_TRANSIENT); + m_windowStyle |= style; bool hasAbortButton = (style & wxPD_CAN_ABORT) != 0;