Qt5: more safe appTerminate.

git-svn-id: trunk@62230 -
This commit is contained in:
zeljko 2019-11-11 09:57:46 +00:00
parent d35e17fbdd
commit e5aa7dd8f8

View File

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