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;
|
doc: TCESynMemo;
|
||||||
begin
|
begin
|
||||||
doc := getDocument(index);
|
doc := getDocument(index);
|
||||||
if doc.modified and (dlgFileChangeClose(fDoc.fileName) = mrCancel) then
|
if (doc.modified or (doc.fileName = doc.tempFilename)) and
|
||||||
exit(false);
|
(dlgFileChangeClose(fDoc.fileName) = mrCancel) then exit(false);
|
||||||
doc.Free;
|
doc.Free;
|
||||||
result := true;
|
result := true;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue