LCL: TTimer: checking csDesgning is no longer useful, since SetDesigning works recursive

git-svn-id: trunk@30500 -
This commit is contained in:
mattias 2011-04-28 18:52:30 +00:00
parent ab52351a55
commit 1e43eccbfd

View File

@ -129,7 +129,7 @@ procedure TCustomTimer.UpdateTimer;
begin
KillTimer;
if (FEnabled) and (FInterval > 0)
and (([csDesigning,csLoading,csDestroying]*ComponentState=[]))
and (([csLoading,csDestroying]*ComponentState=[]))
and Assigned (FOnTimer) then begin
//DebugLn(['TCustomTimer.UpdateTimer ',dbgsName(Self),' WidgetSet.CreateTimer']);
FTimerHandle := WidgetSet.CreateTimer(FInterval, @Timer);