From fe5d9397f351c116e14c2517e589fc147d677436 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Jul 2003 12:50:04 +0000 Subject: [PATCH] don't use fall back if we had already found the MIME type (patch 769826) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/mimecmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/mimecmn.cpp b/src/common/mimecmn.cpp index c663f9d7bd..82875e9c60 100644 --- a/src/common/mimecmn.cpp +++ b/src/common/mimecmn.cpp @@ -537,7 +537,7 @@ wxMimeTypesManager::GetFileTypeFromMimeType(const wxString& mimeType) EnsureImpl(); wxFileType *ft = m_impl->GetFileTypeFromMimeType(mimeType); - if ( ft ) { + if ( !ft ) { // check the fallbacks // // TODO linear search is potentially slow, perhaps we should use a sorted