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 3 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();
}
if ( hasFocus() )
clearFocus();
if ( tqApp && hasFocus() )
clearFocus();
if ( isTopLevel() && isShown() && winId() )
hide();

Loading…
Cancel
Save