Browse Source

Fix the long time bug that non-exist folder to pass via command line is not opened without warning

pull/3575/head
Don HO 7 years ago
parent
commit
ecc9258d45
  1. 5
      PowerEditor/src/NppIO.cpp

5
PowerEditor/src/NppIO.cpp

@ -244,6 +244,11 @@ BufferID Notepad_plus::doOpen(const generic_string& fileName, bool isRecursive,
}
}
}
else
{
wsprintf(str2display, TEXT("\"%s\" cannot be opened:\nFolder \"%s\" doesn't exist."), longFileName, longFileDir.c_str());
::MessageBox(_pPublicInterface->getHSelf(), str2display, TEXT("Cannot opened"), MB_OK);
}
if (!isCreateFileSuccessful)
{

Loading…
Cancel
Save