From 58f90d36a01090bb0cd66ec59a96f73ae13d10a6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 29 Oct 2017 18:59:34 +0100 Subject: [PATCH] Remove redundant wxGenericProgressDialog::m_parentTop assignment The line setting m_parentTop directly was mistakenly left over even after 7e083675342b17762735ef2223fb9d264d6fc937 added the call to SetTopParent() just above it. Remove it now (better late than never), it's redundant at best and even wrong if the top level parent can't be used as the dialog parent because SetTopParent() checks for this but this line did not. --- src/generic/progdlgg.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index b6ec082df9..712d07519c 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -144,7 +144,6 @@ bool wxGenericProgressDialog::Create( const wxString& title, { SetTopParent(parent); - m_parentTop = wxGetTopLevelParent(parent); m_pdStyle = style; wxWindow* const