mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 13:49:30 +02:00
lhelp: fixed dbl click index item
git-svn-id: branches/fixes_2_0@63516 -
This commit is contained in:
parent
eb4b5f979e
commit
7d81afac5d
@ -124,7 +124,7 @@ procedure TContentsFiller.AddItem(AItem: TChmSiteMapItem; AParentNode: TTreeNode
|
||||
var
|
||||
NewNode: TContentTreeNode;
|
||||
X: Integer;
|
||||
txt: string;
|
||||
txt, URL: string;
|
||||
begin
|
||||
if fStop^ then Exit;
|
||||
txt := AItem.KeyWord;
|
||||
@ -136,7 +136,17 @@ begin
|
||||
// Add new child node
|
||||
fLastNode := AParentNode;
|
||||
NewNode := TContentTreeNode(fTreeView.Items.AddChild(AParentNode, txt));
|
||||
NewNode.Url := FixURL('/'+AItem.Local);
|
||||
URL:='';
|
||||
for x:=0 to AItem.SubItemcount-1 do
|
||||
begin
|
||||
URL:=AItem.SubItem[x].URL;
|
||||
if URL<>'' then
|
||||
break;
|
||||
URL:=AItem.SubItem[x].Local;
|
||||
if URL<>'' then
|
||||
break;
|
||||
end;
|
||||
NewNode.Url := FixURL('/'+URL);
|
||||
NewNode.Data := fChm;
|
||||
if fTreeView.Images <> nil then
|
||||
begin
|
||||
|
BIN
ide/lazarus.res
BIN
ide/lazarus.res
Binary file not shown.
Loading…
Reference in New Issue
Block a user