[NEW] Make the last current directory as current directory when the path of current document doesn't exist.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@324 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
donho 16 years ago
parent e58b8c2a2c
commit e85d8619ed

@ -685,13 +685,7 @@ private:
if (params->getNppGUI()._saveOpenKeepInSameDir)
return;
if (!dir || !PathIsDirectory(dir))
{
//Non existing path, usually occurs when a new 1 file is open.
//Set working dir to Notepad++' directory to prevent directory lock.
params->setWorkingDir(NULL);
}
else
if (dir && PathIsDirectory(dir))
{
params->setWorkingDir(dir);
}

Loading…
Cancel
Save