From 6258e418a07e8edda218c27aade9e522deaeaf74 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Jun 2004 13:27:58 +0000 Subject: [PATCH] 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 --- src/generic/progdlgg.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;