mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-20 03:28:21 +02:00
LCL: TApplicationProperties: fixed removing events
git-svn-id: trunk@13399 -
This commit is contained in:
parent
abdc5278c9
commit
f8a3d56fcf
@ -303,8 +303,21 @@ end;
|
|||||||
|
|
||||||
destructor TApplicationProperties.Destroy;
|
destructor TApplicationProperties.Destroy;
|
||||||
begin
|
begin
|
||||||
If not (csDesigning in ComponentState) then
|
If not (csDesigning in ComponentState) then begin
|
||||||
Application.RemoveAllHandlersOfObject(Self);
|
Application.RemoveOnExceptionHandler(FOnException);
|
||||||
|
Application.RemoveOnIdleHandler(FOnIdle);
|
||||||
|
Application.RemoveOnIdleEndHandler(FOnIdleEnd);
|
||||||
|
Application.RemoveOnEndSessionHandler(FOnEndSession);
|
||||||
|
Application.RemoveOnQueryEndSessionHandler(FOnQueryEndSession);
|
||||||
|
Application.RemoveOnMinimizeHandler(FOnMinimize);
|
||||||
|
Application.RemoveOnRestoreHandler(FOnRestore);
|
||||||
|
Application.RemoveOnDropFilesHandler(FOnDropFiles);
|
||||||
|
Application.RemoveOnHelpHandler(FOnHelp);
|
||||||
|
Application.RemoveOnHintHandler(FOnHint);
|
||||||
|
Application.RemoveOnShowHintHandler(FOnShowHint);
|
||||||
|
Application.RemoveOnUserInputHandler(FOnUserInput);
|
||||||
|
end;
|
||||||
|
//AG Application.RemoveAllHandlersOfObject(Self); "Self" is wrong, because Events is owner's methods
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user