mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 09:00:33 +02:00
IDE: Prevent an exception when dbl-clicking empty list. Issue #32650, patch from FTurtle.
git-svn-id: trunk@56829 -
This commit is contained in:
parent
f4b0bd18fb
commit
8868d7bcf6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user