From 2190fb0d518ecd531bfa956e37672e52defeb1d9 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sat, 7 Nov 2015 02:06:48 +0100 Subject: [PATCH] fix, no warning when a temp module was closed --- src/ce_editor.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ce_editor.pas b/src/ce_editor.pas index 8bf927ca..7e8c20e2 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -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;