Just use wxGenericProgressDialog::m_parentTop directly

Remove another redundant line of code from wxGenericProgressDialog::
Create(), there is no need to call GetParentForModalDialog() again when
we just did it to initialize m_parentTop, just use the latter directly.
This commit is contained in:
Vadim Zeitlin
2017-10-29 19:05:31 +01:00
parent 58f90d36a0
commit d240c1f20f

View File

@@ -146,10 +146,7 @@ bool wxGenericProgressDialog::Create( const wxString& title,
m_pdStyle = style;
wxWindow* const
realParent = GetParentForModalDialog(parent, GetWindowStyle());
if (!wxDialog::Create(realParent, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, GetWindowStyle()))
if (!wxDialog::Create(m_parentTop, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, GetWindowStyle()))
return false;
SetMaximum(maximum);