From 9ecfa0902be4678c7bd16d078c3f7e74869ef178 Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 9 Feb 2003 16:08:42 +0000 Subject: [PATCH] fixed file check if file was deleted on disk git-svn-id: trunk@3845 - --- components/codetools/codecache.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/codetools/codecache.pas b/components/codetools/codecache.pas index a84629d29b..0aad7d11d9 100644 --- a/components/codetools/codecache.pas +++ b/components/codetools/codecache.pas @@ -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;