mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 17:59:26 +02:00
IDE: Fixed out-of-bounds error when calling a non-existent "external tool" with a shortcut
This commit is contained in:
parent
5ab8254f9c
commit
6048a8cb51
@ -547,8 +547,10 @@ var
|
||||
Tool: TIDEExternalToolOptions;
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
Item:=Items[Index];
|
||||
if (Index < 0) or (Index >= fItems.Count) then
|
||||
exit;
|
||||
|
||||
Item:=Items[Index];
|
||||
Tool:=TIDEExternalToolOptions.Create;
|
||||
try
|
||||
Tool.Title:=Item.Title;
|
||||
|
Loading…
Reference in New Issue
Block a user