IDE: package options: fixed using DirPathExists to check directories, bug #14405

git-svn-id: trunk@21390 -
This commit is contained in:
mattias 2009-08-22 14:54:18 +00:00
parent 51d7653f6a
commit 6f2fbc674a

View File

@ -224,7 +224,7 @@ begin
if CurDir<>'' then begin
IDEMacros.SubstituteMacros(CurDir);
LazPackage.LongenFilename(CurDir);
if not FileExistsUTF8(CurDir) then begin
if not DirPathExists(CurDir) then begin
DlgResult:=QuestionDlg('Directory not found',
'Directory "'+CurDir+'" not found.',
mtError,[mrIgnore,mrYes,'Remove from search path',mrCancel],0);