This problem was reproducable using the Save file dialog in the dialogs sample.
The member m_filterIndex was only initialised to -1 and never set at another point. Set it to the filter's selection during ModalFinishedCallback.
Closes #13158.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67550
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_path = wxCFStringRef::AsString([sPanel filename]);
m_fileName = wxFileNameFromPath(m_path);
m_dir = wxPathOnly( m_path );
+ if (m_filterChoice)
+ {
+ m_filterIndex = m_filterChoice->GetSelection();
+ }
}
}
else