mirror of https://gitlab.com/basile.b/dexed.git
fix, no warning when a temp module was closed
This commit is contained in:
parent
7eeae18d32
commit
2190fb0d51
|
@ -249,8 +249,8 @@ var
|
|||
doc: TCESynMemo;
|
||||
begin
|
||||
doc := getDocument(index);
|
||||
if doc.modified and (dlgFileChangeClose(fDoc.fileName) = mrCancel) then
|
||||
exit(false);
|
||||
if (doc.modified or (doc.fileName = doc.tempFilename)) and
|
||||
(dlgFileChangeClose(fDoc.fileName) = mrCancel) then exit(false);
|
||||
doc.Free;
|
||||
result := true;
|
||||
end;
|
||||
|
|
Loading…
Reference in New Issue