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:
parent
ead067dedf
commit
1b1b531857
@ -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() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user