fix, last docs and proj, focued doc could be set on a non-existing doc

This commit is contained in:
Basile Burg 2015-12-15 21:47:11 +01:00
parent 9cfac00fd3
commit 89481cff70
1 changed files with 4 additions and 2 deletions

View File

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