From c55ef27a2c511c29a8a82d00bd2ede1fb02cfa41 Mon Sep 17 00:00:00 2001 From: ormorph Date: Thu, 15 Aug 2024 15:35:12 +0300 Subject: Added check for tqApp pointer in TQWidget destructor Necessary for the application to shut down properly Signed-off-by: ormorph --- src/kernel/tqwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/tqwidget.cpp') diff --git a/src/kernel/tqwidget.cpp b/src/kernel/tqwidget.cpp index 6892af3b7..d804f28f1 100644 --- a/src/kernel/tqwidget.cpp +++ b/src/kernel/tqwidget.cpp @@ -983,8 +983,8 @@ TQWidget::~TQWidget() tqApp->quit(); } - if ( hasFocus() ) - clearFocus(); + if ( tqApp && hasFocus() ) + clearFocus(); if ( isTopLevel() && isShown() && winId() ) hide(); -- cgit v1.2.3