X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f27f9577caadb552c0c90c84130a52e0451196ec..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/generic/progdlgg.cpp?ds=sidebyside diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index fad7b159f5..7f48ba31f3 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -146,12 +146,19 @@ wxGenericProgressDialog::wxGenericProgressDialog(const wxString& title, Create( title, message, maximum, parent, style ); } +void wxGenericProgressDialog::SetTopParent(wxWindow* parent) +{ + m_parentTop = GetParentForModalDialog(parent, GetWindowStyle()); +} + bool wxGenericProgressDialog::Create( const wxString& title, const wxString& message, int maximum, wxWindow *parent, int style ) { + SetTopParent(parent); + m_parentTop = wxGetTopLevelParent(parent); m_pdStyle = style;