From 1e1f7bf238f3ff2e55a6fbb3bc32ea65373bd6e0 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 17 Nov 2015 18:12:03 +0100 Subject: [PATCH] fix, close query, multidoc mgr warned about modif with the wrong filename --- src/ce_editor.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ce_editor.pas b/src/ce_editor.pas index d811dd5c..4ae636a0 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -251,7 +251,7 @@ begin doc := getDocument(index); if not assigned(doc) then exit(false); if (doc.modified or (doc.fileName = doc.tempFilename)) and - (dlgFileChangeClose(fDoc.fileName) = mrCancel) then exit(false); + (dlgFileChangeClose(doc.fileName) = mrCancel) then exit(false); doc.Free; result := true; end;