Return early from DoOpen if the user cancelled the file picker box
Fixes issue 5551
This commit is contained in:
parent
80bf3c2c0b
commit
b3c9f437db
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue