Return early from DoOpen if the user cancelled the file picker box

Fixes issue 5551
This commit is contained in:
Pierre Bourdon 2012-08-05 16:53:36 +02:00
parent 80bf3c2c0b
commit b3c9f437db

View File

@ -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)