]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for !wxUSE_MIMETYPE
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 30 Oct 2006 11:25:36 +0000 (11:25 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 30 Oct 2006 11:25:36 +0000 (11:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/utilscmn.cpp

index d06002274f5ad5773def5fa334183ab621cbb3dc..daaa20101a10cbb72c40aad6ff31fe8998647182 100644 (file)
@@ -873,6 +873,7 @@ bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags)
     bool ok = false;
     wxString cmd;
 
+#if wxUSE_MIMETYPE
     wxFileType *ft = wxTheMimeTypesManager->GetFileTypeFromExtension(_T("html"));
     if ( ft )
     {
@@ -882,6 +883,7 @@ bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags)
         ok = ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(url));
         delete ft;
     }
+#endif // wxUSE_MIMETYPE
 
     if ( !ok || cmd.empty() )
     {