diff options
author | ormorph <[email protected]> | 2024-08-15 15:35:12 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-08-16 11:41:04 +0900 |
commit | 09d080c07ca7e500fd7134de7c5442af24618b27 (patch) | |
tree | 2702a726733741f351df22cd5145e1a4c7005284 /src/kernel | |
parent | e06dfea32cfd8b0b541236b2d4391f844dda3a01 (diff) | |
download | tqt3-09d080c07ca7e500fd7134de7c5442af24618b27.tar.gz tqt3-09d080c07ca7e500fd7134de7c5442af24618b27.zip |
Added check for tqApp pointer in TQWidget destructor
Necessary for the application to shut down properly
Signed-off-by: ormorph <[email protected]>
(cherry picked from commit c55ef27a2c511c29a8a82d00bd2ede1fb02cfa41)
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/qwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/qwidget.cpp b/src/kernel/qwidget.cpp index 1af274c6e..0c76bd3bf 100644 --- a/src/kernel/qwidget.cpp +++ b/src/kernel/qwidget.cpp @@ -988,8 +988,8 @@ TQWidget::~TQWidget() tqApp->quit(); } - if ( hasFocus() ) - clearFocus(); + if ( tqApp && hasFocus() ) + clearFocus(); if ( isTopLevel() && isShown() && winId() ) hide(); |