IDE: Prevent an exception when dbl-clicking empty list. Issue #32650, patch from FTurtle.

git-svn-id: trunk@56829 -
This commit is contained in:
juha 2017-12-23 17:04:42 +00:00
parent f4b0bd18fb
commit 8868d7bcf6

View File

@ -58,8 +58,8 @@ end;
procedure TGenericListSelectForm.ListBoxDblClick(Sender: TObject);
begin
UpdateButtons;
ModalResult:=mrOK;
if ListBox.ItemIndex > -1 then
ModalResult:=mrOK;
end;
procedure TGenericListSelectForm.UpdateButtons;