]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/mimetype.cpp
replaced Yield with YieldIfNeeded for Mac
[wxWidgets.git] / src / unix / mimetype.cpp
index cae5717219fb55b23e545402fc0bad5eb3cdff17..e677ef3d4d5cb514d1baf6d31e402920619314ab 100644 (file)
@@ -2707,9 +2707,10 @@ bool wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName,
             // have we seen this one before?
             int nIndex = m_aTypes.Index(data.type);
 
-            // and if we have, was it in this file?
+            // and if we have, was it in this file? if not, we should
+            // overwrite the previously seen one
             overwrite = nIndex == wxNOT_FOUND ||
-                            aIndicesSeenHere.Index(nIndex) != wxNOT_FOUND;
+                            aIndicesSeenHere.Index(nIndex) == wxNOT_FOUND;
         }
 
         wxLogTrace(TRACE_MIME, _T("mailcap %s: %s [%s]"),