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:
@@ -146,10 +146,7 @@ bool wxGenericProgressDialog::Create( const wxString& title,
|
|||||||
|
|
||||||
m_pdStyle = style;
|
m_pdStyle = style;
|
||||||
|
|
||||||
wxWindow* const
|
if (!wxDialog::Create(m_parentTop, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, GetWindowStyle()))
|
||||||
realParent = GetParentForModalDialog(parent, GetWindowStyle());
|
|
||||||
|
|
||||||
if (!wxDialog::Create(realParent, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, GetWindowStyle()))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SetMaximum(maximum);
|
SetMaximum(maximum);
|
||||||
|
Reference in New Issue
Block a user