ignore the icon option in Netscape mime.type file
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Jan 2002 16:38:30 +0000 (16:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Jan 2002 16:38:30 +0000 (16:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 0fdc0fe837f2f86e42545ab1addf1c5ca200ee40..3f6c02378243473deb76fe0c506d7f6f61a072ba 100644 (file)
@@ -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 ) {