diff options
Diffstat (limited to 'src/kernel/tqobject.cpp')
-rw-r--r-- | src/kernel/tqobject.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/tqobject.cpp b/src/kernel/tqobject.cpp index ac7a405ef..cfb026fbf 100644 --- a/src/kernel/tqobject.cpp +++ b/src/kernel/tqobject.cpp @@ -747,7 +747,10 @@ TQObject::~TQObject() if ( pendTimer ) { // might be pending timers qKillTimer( this ); } - TQApplication::removePostedEvents( this ); + if ( tqApp ) + { + TQApplication::removePostedEvents( this ); + } if ( isTree ) { remove_tree( this ); // remove from global root list isTree = FALSE; |