]> git.saurik.com Git - wxWidgets.git/commitdiff
Add comment explaining why we filter out application/x-blah-app like entries from...
authorRobert Roebling <robert@roebling.de>
Sat, 24 Jan 2009 00:06:18 +0000 (00:06 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 24 Jan 2009 00:06:18 +0000 (00:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 5675516b4cb08ef24e21f92b91f737c226424b06..7dbd2c4aa2b4cf05318b3c95d26a058cd083a75c 100644 (file)
@@ -268,6 +268,10 @@ void wxMimeTypesManagerImpl::LoadXDGGlobs(const wxString& filename)
        wxArrayString exts;
        exts.Add( ext );
 
+       // The glob files have two kinds of associations: those, which
+       // link an extension to a file type (text/html) and those
+       // which link it to an application type (application/x-mozilla).
+       // We need the former.
        if (mime.Find( "application" ) != 0)
            AddToMimeData(mime, wxEmptyString, NULL, exts, wxEmptyString, true );
     }