]> git.saurik.com Git - wxWidgets.git/commitdiff
disable the first top level parent, not the topmost top level parent
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Jun 2004 13:27:58 +0000 (13:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Jun 2004 13:27:58 +0000 (13:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/progdlgg.cpp

index b38e80e3a5c53939b2bb8db758fd7ea6b8cb2761..95e23580b6d15c6c7a0b475d908785b9addc3d40 100644 (file)
@@ -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;