X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d287e713f13354af16a8deaba0093be1bf9af59..da6f998486f1070e205f2e0a54f22a1b67cb32a4:/src/gtk/gnome/gvfs.cpp diff --git a/src/gtk/gnome/gvfs.cpp b/src/gtk/gnome/gvfs.cpp index aa96cc629f..3f86418b10 100644 --- a/src/gtk/gnome/gvfs.cpp +++ b/src/gtk/gnome/gvfs.cpp @@ -3,7 +3,6 @@ // Author: Robert Roebling // Purpose: Implement GNOME VFS support // Created: 03/17/06 -// RCS-ID: $Id$ // Copyright: Robert Roebling // Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// @@ -116,18 +115,15 @@ bool wxGnomeVFSMimeTypesManagerImpl::DoAssociation(const wxString& strType, const wxArrayString& strExtensions, const wxString& strDesc) { - int nIndex = AddToMimeData(strType, strIcon, entry, strExtensions, strDesc, true); - - if ( nIndex == wxNOT_FOUND ) - return false; - - if (m_mailcapStylesInited & wxMAILCAP_GNOME) - { - // User modificationt to the MIME database - // are not supported :-) - } - - return false; + return AddToMimeData + ( + strType, + strIcon, + entry, + strExtensions, + strDesc, + true + ) != wxNOT_FOUND; } //----------------------------------------------------------------------------