From: Stefan Csomor Date: Mon, 18 Jan 2010 09:12:53 +0000 (+0000) Subject: setting correct 'default' for m_filterIndex, closes #11541 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2efd54a41b12a5977713c837c585d89f35a13d14?ds=sidebyside setting correct 'default' for m_filterIndex, closes #11541 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/filedlg.mm b/src/osx/cocoa/filedlg.mm index 727e9fe1a3..916b4e8b7a 100644 --- a/src/osx/cocoa/filedlg.mm +++ b/src/osx/cocoa/filedlg.mm @@ -154,6 +154,8 @@ int wxFileDialog::ShowModal() m_path = wxEmptyString; m_fileNames.Clear(); m_paths.Clear(); + // since we don't support retrieving the matching filter + m_filterIndex = -1; wxNonOwnedWindow* parentWindow = NULL; int returnCode = -1;