Merged revision(s) 49289 #6b5589a1c7 from trunk:

IDE: Don't select the first component in ComponentList at startup. Issue #28260, patch from Ondrej Pokorny
........

git-svn-id: branches/fixes_1_4@49298 -
This commit is contained in:
maxim 2015-06-09 00:02:46 +00:00
parent c89fc75712
commit 402af0b195

View File

@ -130,8 +130,6 @@ begin
if Assigned(IDEComponentPalette) then
begin
UpdateComponentSelection;
with ListTree do
Selected := Items.GetFirstNode;
TreeFilterEd.InvalidateFilter;
IDEComponentPalette.AddHandlerComponentAdded(@ComponentWasAdded);
end;
@ -160,6 +158,13 @@ begin
end
else
PageControl.AnchorSideBottom.Side := asrBottom;
if not Assigned(Parent) then//only in undocked IDE
begin
if TreeFilterEd.CanFocus then
TreeFilterEd.SetFocus;
TreeFilterEd.SelectAll;
end;
end;
procedure TComponentListForm.FormActivate(Sender: TObject);