mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 00:02:03 +02:00
ide: don't crash when we pressing keys in the empty procedure list (bug #0013377) based on patch of Vladimir Zhirov
git-svn-id: trunk@19069 -
This commit is contained in:
parent
3b28882b67
commit
1a7230cfff
@ -581,6 +581,9 @@ end;
|
||||
procedure TProcedureListForm.edMethodsKeyDown(Sender: TObject; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
begin
|
||||
if LV.Items.Count = 0 then
|
||||
Exit;
|
||||
|
||||
if Key = VK_Down then
|
||||
begin
|
||||
if (LV.Items.IndexOf(LV.ItemFocused) + 1) < LV.Items.Count then
|
||||
|
Loading…
Reference in New Issue
Block a user