fixed file check if file was deleted on disk

git-svn-id: trunk@3845 -
This commit is contained in:
mattias 2003-02-09 16:08:42 +00:00
parent e0f95794b6
commit 9ecfa0902b

View File

@ -791,7 +791,7 @@ end;
function TCodeBuffer.FileOnDiskHasChanged: boolean;
begin
if LoadDateValid then
if LoadDateValid and FileExists(Filename) then
Result:=(FileDateOnDisk<>LoadDate)
else
Result:=false;