Fixed chm index searching not working

git-svn-id: trunk@35871 -
This commit is contained in:
andrew 2012-03-10 15:07:52 +00:00
parent a34ee0ddb8
commit 251d250a55

View File

@ -418,7 +418,8 @@ begin
try
Doc.Free;
Highlighter.Free;
finally
except
UseOrigStream := True;
end;
end;
@ -675,7 +676,8 @@ var
SearchText: String;
Node: TTreeNode;
begin
if not fIndexEdit.Focused then Exit;
if fIndexEdit <> Sender then
Exit;
SearchText := LowerCase(fIndexEdit.Text);
Node := fIndexView.Items.GetFirstNode;
while Node<>nil do begin