From: Vadim Zeitlin Date: Thu, 10 Jun 2004 13:27:58 +0000 (+0000) Subject: disable the first top level parent, not the topmost top level parent X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6258e418a07e8edda218c27aade9e522deaeaf74 disable the first top level parent, not the topmost top level parent git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index b38e80e3a5..95e23580b6 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -115,11 +115,7 @@ wxProgressDialog::wxProgressDialog(wxString const &title, m_maximum /= m_factor; #endif // __WXMSW__ - m_parentTop = parent; - while ( m_parentTop && m_parentTop->GetParent() ) - { - m_parentTop = m_parentTop->GetParent(); - } + m_parentTop = wxGetTopLevelParent(parent); wxLayoutConstraints *c;