LCL: TControl.Click: simplified

git-svn-id: trunk@32582 -
This commit is contained in:
mattias 2011-10-01 13:08:53 +00:00
parent 37e00cb51f
commit 8cc6b6ba82

View File

@ -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