mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-01 23:19:39 +01:00
codetools: mark saved TCodeBuffer as not modified
git-svn-id: trunk@21097 -
This commit is contained in:
parent
684200b7bd
commit
9f0a0a4510
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user