Don't prepend file:// in wxUtils::Explore() on windows. Wxw will just remove it, and/or blow up trying to remove it, if the path isn't ascii.
Fixes issue 6721.
This commit is contained in:
parent
99c89ae109
commit
cc05f66ba1
|
@ -28,11 +28,13 @@ void Launch(const char *filename)
|
||||||
void Explore(const char *path)
|
void Explore(const char *path)
|
||||||
{
|
{
|
||||||
wxString wxPath = StrToWxStr(path);
|
wxString wxPath = StrToWxStr(path);
|
||||||
|
#ifndef _WIN32
|
||||||
// Default to file
|
// Default to file
|
||||||
if (! wxPath.Contains(wxT("://")))
|
if (! wxPath.Contains(wxT("://")))
|
||||||
{
|
{
|
||||||
wxPath = wxT("file://") + wxPath;
|
wxPath = wxT("file://") + wxPath;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
wxPath.Replace(wxT(" "), wxT("\\ "));
|
wxPath.Replace(wxT(" "), wxT("\\ "));
|
||||||
|
|
Loading…
Reference in New Issue