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

Loading…
Cancel
Save