diff options
Diffstat (limited to 'src/kernel/tqwidget.cpp')
-rw-r--r-- | src/kernel/tqwidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/tqwidget.cpp b/src/kernel/tqwidget.cpp index ddc34c0ec..0b27e2564 100644 --- a/src/kernel/tqwidget.cpp +++ b/src/kernel/tqwidget.cpp @@ -1003,7 +1003,10 @@ TQWidget::~TQWidget() childObjects = 0; } - TQApplication::removePostedEvents( this ); + if ( tqApp ) + { + TQApplication::removePostedEvents( this ); + } destroy(); // platform-dependent cleanup if ( extra ) |