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;
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user