]> git.saurik.com Git - wxWidgets.git/commitdiff
setting correct 'default' for m_filterIndex, closes #11541
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 18 Jan 2010 09:12:53 +0000 (09:12 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 18 Jan 2010 09:12:53 +0000 (09:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/filedlg.mm

index 727e9fe1a3e635273fc8fd0c1fd398104d441a18..916b4e8b7a677880203d9d86de7250b4e27319b7 100644 (file)
@@ -154,6 +154,8 @@ int wxFileDialog::ShowModal()
     m_path = wxEmptyString;
     m_fileNames.Clear();
     m_paths.Clear();
     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;
 
     wxNonOwnedWindow* parentWindow = NULL;
     int returnCode = -1;