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,6 +2489,14 @@ var
|
||||||
str: TStringList;
|
str: TStringList;
|
||||||
txt: string;
|
txt: string;
|
||||||
begin
|
begin
|
||||||
|
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
|
if (fFilename = fTempFileName) or fDisableFileDateCheck
|
||||||
or not FileAge(fFilename, newDate) or (fFileDate = newDate) then
|
or not FileAge(fFilename, newDate) or (fFileDate = newDate) then
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue