mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 09:29:35 +02:00
Fix crash from "IDE: Show icons in the tree of key mapping options. Issue #35923. Patch from FTurtle"
git-svn-id: trunk@64362 -
This commit is contained in:
parent
746dea29a9
commit
8c10092997
@ -437,7 +437,7 @@ var
|
||||
IDECommand: TIDECommand;
|
||||
begin
|
||||
IDECommand:=IDECommandList.FindIDECommand(AKeyRelation.Command);
|
||||
if IDECommand.UserCount=0 then
|
||||
if (IDECommand=nil) or (IDECommand.UserCount=0) then
|
||||
Exit(imgKeyItem);
|
||||
Result:=IDECommand.Users[0].ImageIndex;
|
||||
if Result=-1 then
|
||||
|
Loading…
Reference in New Issue
Block a user