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,9 +602,11 @@ begin
|
||||||
begin
|
begin
|
||||||
str := fDocuments.Strings[i];
|
str := fDocuments.Strings[i];
|
||||||
if FileExists(str) then
|
if FileExists(str) then
|
||||||
|
begin
|
||||||
docHandler.openDocument(str);
|
docHandler.openDocument(str);
|
||||||
if i = fDocIndex then
|
if i = fDocIndex then
|
||||||
focusedName := str;
|
focusedName := str;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
//
|
//
|
||||||
if focusedName <> '' then
|
if focusedName <> '' then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue