diff options
Diffstat (limited to 'src/kernel/qobject.cpp')
| -rw-r--r-- | src/kernel/qobject.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp index bb4c848b8..7692e9c21 100644 --- a/src/kernel/qobject.cpp +++ b/src/kernel/qobject.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; |
