Skip to content

Commit

Permalink
Return early from DoOpen if the user cancelled the file picker box
Browse files Browse the repository at this point in the history
Fixes issue 5551
  • Loading branch information
delroth committed Aug 5, 2012
1 parent 80bf3c2 commit b3c9f43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinWX/Src/FrameTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ void CFrame::DoOpen(bool Boot)
wxFD_OPEN | wxFD_FILE_MUST_EXIST,
this);

if (path.empty())
return;

std::string currentDir2 = File::GetCurrentDir();

if (currentDir != currentDir2)
Expand Down

0 comments on commit b3c9f43

Please sign in to comment.