Avoid overwriting m_filterIndex initialization
There should be no need to set it again in Create() See #17718
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user