fix, close query, multidoc mgr warned about modif with the wrong filename

This commit is contained in:
Basile Burg 2015-11-17 18:12:03 +01:00
parent 404f007dd6
commit 1e1f7bf238
1 changed files with 1 additions and 1 deletions

View File

@ -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;