From: Robert Roebling Date: Sat, 24 Jan 2009 00:06:18 +0000 (+0000) Subject: Add comment explaining why we filter out application/x-blah-app like entries from... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ded5dd7689118b885c309216376f942cf7694bf1 Add comment explaining why we filter out application/x-blah-app like entries from the MIME db git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 5675516b4c..7dbd2c4aa2 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -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 ); }