mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
Return early from DoOpen if the user cancelled the file picker box
Fixes issue 5551
This commit is contained in:
@ -669,6 +669,9 @@ void CFrame::DoOpen(bool Boot)
|
|||||||
wxFD_OPEN | wxFD_FILE_MUST_EXIST,
|
wxFD_OPEN | wxFD_FILE_MUST_EXIST,
|
||||||
this);
|
this);
|
||||||
|
|
||||||
|
if (path.empty())
|
||||||
|
return;
|
||||||
|
|
||||||
std::string currentDir2 = File::GetCurrentDir();
|
std::string currentDir2 = File::GetCurrentDir();
|
||||||
|
|
||||||
if (currentDir != currentDir2)
|
if (currentDir != currentDir2)
|
||||||
|
Reference in New Issue
Block a user