mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:19:47 +02:00
LCL: Add ExitProc to TApplication differently. Issue #38039, patch from Cyrax.
git-svn-id: trunk@64110 -
This commit is contained in:
parent
54029095cc
commit
741a56883e
@ -1397,7 +1397,6 @@ type
|
||||
FMouseControl: TControl;
|
||||
FNavigation: TApplicationNavigationOptions;
|
||||
FOldExceptProc: TExceptProc;
|
||||
FOldExitProc: Pointer;
|
||||
FOnActionExecute: TActionEvent;
|
||||
FOnActionUpdate: TActionEvent;
|
||||
FOnActivate: TNotifyEvent;
|
||||
|
@ -119,8 +119,7 @@ begin
|
||||
inherited Create(AOwner);
|
||||
CaptureExceptions:=true;
|
||||
|
||||
FOldExitProc:=ExitProc;
|
||||
ExitProc:=@BeforeFinalization;
|
||||
AddExitProc(@BeforeFinalization);
|
||||
|
||||
OnGetApplicationName := @GetApplicationName;
|
||||
end;
|
||||
@ -135,8 +134,6 @@ begin
|
||||
|
||||
if Assigned(FOnDestroy) then FOnDestroy(Self);
|
||||
|
||||
ExitProc:=FOldExitProc;
|
||||
|
||||
ProcessAsyncCallQueue;
|
||||
|
||||
if OnMenuPopupHandler=@MenuPopupHandler then
|
||||
|
Loading…
Reference in New Issue
Block a user