mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 10:29:24 +02:00
LCL: TControl.Click: simplified
git-svn-id: trunk@32582 -
This commit is contained in:
parent
37e00cb51f
commit
8cc6b6ba82
@ -2299,11 +2299,7 @@ end;
|
||||
procedure TControl.Click;
|
||||
begin
|
||||
//DebugLn(['TControl.Click ',DbgSName(Self)]);
|
||||
if (not (csDesigning in ComponentState)) and (ActionLink <> nil) and
|
||||
((Action=nil)
|
||||
or (not CompareMem(@FOnClick, @Action.OnExecute, SizeOf(TMethod)))
|
||||
or Assigned(FOnClick))
|
||||
then
|
||||
if (not (csDesigning in ComponentState)) and (ActionLink <> nil) then
|
||||
ActionLink.Execute(Self)
|
||||
else
|
||||
if Assigned(FOnClick) then
|
||||
|
Loading…
Reference in New Issue
Block a user