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:
Rachel Bryk 2013-10-09 16:18:33 -04:00
parent 99c89ae109
commit cc05f66ba1
1 changed files with 2 additions and 0 deletions

View File

@ -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("\\ "));