From e85d8619edf492dae076813e088acd40a52c3a3c Mon Sep 17 00:00:00 2001 From: donho Date: Tue, 16 Sep 2008 20:37:38 +0000 Subject: [PATCH] [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 --- PowerEditor/src/Notepad_plus.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.h b/PowerEditor/src/Notepad_plus.h index f48b38aea..c0442fa5b 100644 --- a/PowerEditor/src/Notepad_plus.h +++ b/PowerEditor/src/Notepad_plus.h @@ -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); }