X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f27f9577caadb552c0c90c84130a52e0451196ec..7d6a4d96961eac84d05db8bb24c64d39003f6e54:/src/generic/progdlgg.cpp 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;