mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 18:39:47 +02:00
Qt5: more safe appTerminate.
git-svn-id: trunk@62230 -
This commit is contained in:
parent
d35e17fbdd
commit
e5aa7dd8f8
@ -311,8 +311,12 @@ end;
|
||||
procedure TQtWidgetSet.AppTerminate;
|
||||
begin
|
||||
// free hooks
|
||||
if Assigned(FAppEvenFilterHook) then
|
||||
QObject_hook_destroy(FAppEvenFilterHook);
|
||||
if Assigned(FAppFocusChangedHook) then
|
||||
QApplication_hook_destroy(FAppFocusChangedHook);
|
||||
FAppEvenFilterHook := nil;
|
||||
FAppFocusChangedHook := nil;
|
||||
// do not quit application if we are library
|
||||
if not FIsLibraryInstance then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user