mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:39:18 +02:00
LCL: TControl.Click: fixed check if OnClick differs from Action.OnExecute
git-svn-id: trunk@32579 -
This commit is contained in:
parent
f87dae15c5
commit
8b557e425b
@ -2300,7 +2300,10 @@ procedure TControl.Click;
|
|||||||
begin
|
begin
|
||||||
//DebugLn(['TControl.Click ',DbgSName(Self)]);
|
//DebugLn(['TControl.Click ',DbgSName(Self)]);
|
||||||
if (not (csDesigning in ComponentState)) and (ActionLink <> nil) and
|
if (not (csDesigning in ComponentState)) and (ActionLink <> nil) and
|
||||||
((Action=nil) or (@FOnClick <> @Action.OnExecute) or Assigned(FOnClick)) then
|
((Action=nil)
|
||||||
|
or (not CompareMem(@FOnClick, @Action.OnExecute, SizeOf(TMethod)))
|
||||||
|
or Assigned(FOnClick))
|
||||||
|
then
|
||||||
ActionLink.Execute(Self)
|
ActionLink.Execute(Self)
|
||||||
else
|
else
|
||||||
if Assigned(FOnClick) then
|
if Assigned(FOnClick) then
|
||||||
|
Loading…
Reference in New Issue
Block a user