From a2717c3d0c29000fc0eae0de0787d03ba09a249f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 30 Jan 2002 16:38:30 +0000 Subject: [PATCH] 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 --- src/unix/mimetype.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ) { -- 2.47.2