codetools: mark saved TCodeBuffer as not modified

git-svn-id: trunk@21097 -
This commit is contained in:
mattias 2009-08-04 17:01:24 +00:00
parent 684200b7bd
commit 9f0a0a4510

View File

@ -894,11 +894,12 @@ end;
function TCodeBuffer.SaveToFile(const AFilename: string): boolean;
begin
Result:=inherited SaveToFile(AFilename);
//DebugLn('TCodeBuffer.SaveToFile ',Filename,' -> ',AFilename,' ',Result);
//DebugLn(['TCodeBuffer.SaveToFile ',Filename,' -> ',AFilename,' ',Result]);
if CompareFilenames(AFilename,Filename)=0 then begin
if Result then begin
IsDeleted:=false;
MakeFileDateValid;
Modified:=false;
end;
end;
end;