IDE: Fix a crash in Components View. Issue #20305, patch from Bart Broersma

git-svn-id: trunk@32446 -
This commit is contained in:
juha 2011-09-21 09:28:03 +00:00
parent 39d0a7fdfe
commit 751cd5b9ae

View File

@ -326,7 +326,8 @@ procedure TComponentListForm.ListboxComponentsKeyDown(Sender: TObject;
var Key: Word; Shift: TShiftState);
begin
if Key = VK_RETURN then
ListboxComponentsDblClick(Sender);
if (ListboxComponents.ItemIndex >= 0) then
ListboxComponentsDblClick(Sender);
end;
procedure TComponentListForm.SetFocusToDataList;