From: Vadim Zeitlin Date: Wed, 30 Jan 2002 16:38:30 +0000 (+0000) Subject: ignore the icon option in Netscape mime.type file X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a2717c3d0c29000fc0eae0de0787d03ba09a249f?ds=inline ignore the icon option in Netscape mime.type file git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 0fdc0fe837..3f6c023782 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -2117,8 +2117,13 @@ bool wxMimeTypesManagerImpl::ReadMimeTypes(const wxString& strFileName) strExtensions = strRHS; } else { - wxLogWarning(_("Unknown field in file %s, line %d: '%s'."), - strFileName.c_str(), nLine + 1, strLHS.c_str()); + // this one is simply ignored: it usually refers to Netscape + // built in icons which are useless for us anyhow + if ( strLHS != _T("icon") ) + { + wxLogWarning(_("Unknown field in file %s, line %d: '%s'."), + strFileName.c_str(), nLine + 1, strLHS.c_str()); + } } if ( !entryEnded ) {