compilation fix for !wxUSE_MIMETYPE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2006-10-30 11:25:36 +00:00
parent ead067dedf
commit 1b1b531857

View File

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