Skip to content

Commit

Permalink
Don't prepend file:// in wxUtils::Explore() on windows. Wxw will just…
Browse files Browse the repository at this point in the history
… remove it, and/or blow up trying to remove it, if the path isn't ascii.

Fixes issue 6721.
  • Loading branch information
RachelBryk committed Oct 9, 2013
1 parent 99c89ae commit cc05f66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/DolphinWX/Src/WxUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ void Launch(const char *filename)
void Explore(const char *path)
{
wxString wxPath = StrToWxStr(path);
#ifndef _WIN32
// Default to file
if (! wxPath.Contains(wxT("://")))
{
wxPath = wxT("file://") + wxPath;
}
#endif

#ifdef __WXGTK__
wxPath.Replace(wxT(" "), wxT("\\ "));
Expand Down

0 comments on commit cc05f66

Please sign in to comment.