Added check for tqApp pointer in TQWidget destructor

Necessary for the application to shut down properly

Signed-off-by: ormorph <roma251078@mail.ru>
pull/180/head
ormorph 3 months ago
parent 42957a3f81
commit c55ef27a2c
No known key found for this signature in database
GPG Key ID: 30407D7656623DFD

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

Loading…
Cancel
Save