From 8c3bc8252935727b836ea20b546d8538e994f86e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 15 Apr 2004 22:15:12 +0000 Subject: [PATCH] fixed priority of the mailcap entries (patch 935954) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@26816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/unix/mimetype.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 81d4fb71ab..8671524444 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -201,6 +201,7 @@ Unix: - Unicode compilation fix in wxDateTime - typo in configure which broke AIX build fixed (Swengtoo) +- fixed priorities of mailcap entries (David Hart) wxMSW: diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 77ab82d6e8..b96e3e6486 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -2559,7 +2559,7 @@ bool wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName, // and if we have, was it in this file? overwrite = nIndex == wxNOT_FOUND || - aIndicesSeenHere.Index(nIndex) != wxNOT_FOUND; + aIndicesSeenHere.Index(nIndex) == wxNOT_FOUND; } wxLogTrace(TRACE_MIME, _T("mailcap %s: %s [%s]"),