mirror of https://gitlab.com/basile.b/dexed.git
fix, last docs and proj, focued doc could be set on a non-existing doc
This commit is contained in:
parent
9cfac00fd3
commit
89481cff70
|
|
@ -602,10 +602,12 @@ begin
|
|||
begin
|
||||
str := fDocuments.Strings[i];
|
||||
if FileExists(str) then
|
||||
begin
|
||||
docHandler.openDocument(str);
|
||||
if i = fDocIndex then
|
||||
focusedName := str;
|
||||
end;
|
||||
end;
|
||||
//
|
||||
if focusedName <> '' then
|
||||
docHandler.openDocument(focusedName);
|
||||
|
|
|
|||
Loading…
Reference in New Issue