From 26196d8a23c258c2c972e87242011f83208e03bb Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 15 Sep 2015 18:41:51 +0200 Subject: [PATCH] fix, reload last stuff, does not handle temp/unsaved modules --- src/ce_main.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ce_main.pas b/src/ce_main.pas index 0b1eaa8b..f6cded57 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -516,7 +516,8 @@ begin begin str := mdh.document[i].fileName; if str <> mdh.document[i].tempFilename then - fDocuments.Add(str); + if FileExists(str) then + fDocuments.Add(str); end; end; @@ -528,7 +529,8 @@ begin mdh := getMultiDocHandler; if mdh = nil then exit; for str in fDocuments do - mdh.openDocument(str); + if FileExists(str) then + mdh.openDocument(str); end; {$ENDREGION}