diff --git a/src/ce_main.pas b/src/ce_main.pas index 45a1f85b..45d41540 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -602,9 +602,11 @@ begin begin str := fDocuments.Strings[i]; if FileExists(str) then + begin docHandler.openDocument(str); - if i = fDocIndex then - focusedName := str; + if i = fDocIndex then + focusedName := str; + end; end; // if focusedName <> '' then