undid removal of implicit http: from wxLaunchDefaultBrowser() done in last revision as it's not supposed to work with local files by default (which should have file:// scheme (obviously)) but with URLs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -729,10 +729,8 @@ bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags)
|
|||||||
// set the scheme of url to http if it does not have one
|
// set the scheme of url to http if it does not have one
|
||||||
// RR: This doesn't work if the url is just a local path
|
// RR: This doesn't work if the url is just a local path
|
||||||
wxString url(urlOrig);
|
wxString url(urlOrig);
|
||||||
#if 0
|
|
||||||
if ( !wxURI(url).HasScheme() )
|
if ( !wxURI(url).HasScheme() )
|
||||||
url.Prepend(wxT("http://"));
|
url.Prepend(wxT("http://"));
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(__WXMSW__)
|
#if defined(__WXMSW__)
|
||||||
|
Reference in New Issue
Block a user