mirror of https://gitlab.com/basile.b/dexed.git
close #145 - External modification tracking, also warns about deleted files
This commit is contained in:
parent
1ef89121e7
commit
220a68a59c
|
@ -2489,9 +2489,17 @@ var
|
|||
str: TStringList;
|
||||
txt: string;
|
||||
begin
|
||||
if (fFilename = fTempFileName) or fDisableFileDateCheck
|
||||
or not FileAge(fFilename, newDate) or (fFileDate = newDate) then
|
||||
if fDisableFileDateCheck then
|
||||
exit;
|
||||
if fFilename.isNotEmpty and not fFilename.fileExists and
|
||||
(fFilename <> '<new document>') then
|
||||
begin
|
||||
// cant use a dialog: dialog closed -> doc focused -> warn again, etc
|
||||
getMessageDisplay.message(fFilename + ' does not exist anymore', self, amcEdit, amkWarn);
|
||||
end;
|
||||
if (fFilename = fTempFileName) or fDisableFileDateCheck
|
||||
or not FileAge(fFilename, newDate) or (fFileDate = newDate) then
|
||||
exit;
|
||||
if (fFileDate <> 0.0) then
|
||||
begin
|
||||
str := TStringList.Create;
|
||||
|
|
Loading…
Reference in New Issue