Fix handling of the *.* extension case, before this fix it was being passed as a "*" filter to the Cocoa dialog which, not being a valid extension, meant that no files were selectable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2010-02-06 18:19:43 +00:00
parent 75a2c6a1ee
commit 05c218ee24

View File

@@ -116,6 +116,10 @@ NSArray* GetTypesFromFilter( const wxString filter )
if (extension.length() && (extension.GetChar(0) == '.'))
extension = extension.Mid( 1 );
// Remove leading '*', this is for handling *.*
if (extension.length() && (extension.GetChar(0) == '*'))
extension = extension.Mid( 1 );
if ( extension.IsEmpty() )
{
if ( types != nil )