Avoid overwriting m_filterIndex initialization

There should be no need to set it again in Create()
See #17718
This commit is contained in:
Paul Cornett
2017-12-03 10:19:03 -08:00
parent b8734109ff
commit 88b317f89e

View File

@@ -86,7 +86,6 @@ bool wxFileDialogBase::Create(wxWindow *parent,
#endif
m_windowStyle = style;
m_filterIndex = 0;
if (!HasFdFlag(wxFD_OPEN) && !HasFdFlag(wxFD_SAVE))
m_windowStyle |= wxFD_OPEN; // wxFD_OPEN is the default