Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert relative paths to absolute when opening containing folder of …
…an iso.

Fixes issue 5879.
  • Loading branch information
RachelBryk committed Jan 11, 2013
1 parent ad05d56 commit 4823609
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Source/Core/DolphinWX/Src/GameListCtrl.cpp
Expand Up @@ -19,6 +19,7 @@

#include <wx/imaglist.h>
#include <wx/fontmap.h>
#include <wx/filename.h>

#include <algorithm>
#include <memory>
Expand Down Expand Up @@ -982,9 +983,11 @@ void CGameListCtrl::OnOpenContainingFolder(wxCommandEvent& WXUNUSED (event))
const GameListItem *iso = GetSelectedISO();
if (!iso)
return;
std::string path;
SplitPath(iso->GetFileName(), &path, 0, 0);
WxUtils::Explore(path.c_str());

wxString strPath(iso->GetFileName().c_str(), wxConvUTF8);
wxFileName path = wxFileName::FileName(strPath);
path.MakeAbsolute();
WxUtils::Explore(path.GetPath().char_str());
}

void CGameListCtrl::OnOpenSaveFolder(wxCommandEvent& WXUNUSED (event))
Expand Down

0 comments on commit 4823609

Please sign in to comment.