summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-07-30 14:36:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-07-30 14:36:53 +0900
commit0c50fad6c7792e3b1c3e1a019c99905c52927baf (patch)
treea06f48d8e6ee8918ed6e2b7a47cde3eda4c0471d
parenta44a713fec2e2c3678d64307620225c11cbe955b (diff)
downloadtqt3-0c50fad6.tar.gz
tqt3-0c50fad6.zip
Fixed "TQApplication::postEvent: Unexpected null receiver" warning message. This resolves bug 1901 and 1909.
-rw-r--r--src/kernel/qwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/qwidget.cpp b/src/kernel/qwidget.cpp
index ab36c427..e37fa303 100644
--- a/src/kernel/qwidget.cpp
+++ b/src/kernel/qwidget.cpp
@@ -5984,9 +5984,9 @@ TQWidget *TQWidget::childAt( const TQPoint & p, bool includeThis ) const
void TQWidget::updateGeometry()
{
- if ( !isTopLevel() && isShown() )
- TQApplication::postEvent( parentWidget(),
- new TQEvent( TQEvent::LayoutHint ) );
+ TQWidget *parent = parentWidget();
+ if (parent && !isTopLevel() && isShown())
+ TQApplication::postEvent(parent, new TQEvent(TQEvent::LayoutHint));
}