Added check for tqApp pointer in TQWidget destructor

Necessary for the application to shut down properly

Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit c55ef27a2c)
r14.1.x
ormorph 6 months ago committed by Michele Calgaro
parent e06dfea32c
commit 09d080c07c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -988,8 +988,8 @@ TQWidget::~TQWidget()
tqApp->quit(); tqApp->quit();
} }
if ( hasFocus() ) if ( tqApp && hasFocus() )
clearFocus(); clearFocus();
if ( isTopLevel() && isShown() && winId() ) if ( isTopLevel() && isShown() && winId() )
hide(); hide();

Loading…
Cancel
Save