]> git.saurik.com Git - wxWidgets.git/commitdiff
removed not doing anything and not compiling code from DoAssociation()
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Dec 2008 00:01:54 +0000 (00:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Dec 2008 00:01:54 +0000 (00:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gnome/gvfs.cpp

index aa96cc629f13f1cccf69633506f42ec60c339899..37c2b6c175c39def6e334e39ddb794dd5026331c 100644 (file)
@@ -116,18 +116,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;
 }
 
 //----------------------------------------------------------------------------