summaryrefslogtreecommitdiffstats
path: root/src/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2014-07-30 14:36:53 +0900
committerMichele Calgaro <[email protected]>2014-07-30 14:36:53 +0900
commit0c50fad6c7792e3b1c3e1a019c99905c52927baf (patch)
treea06f48d8e6ee8918ed6e2b7a47cde3eda4c0471d /src/kernel/qwidget.cpp
parenta44a713fec2e2c3678d64307620225c11cbe955b (diff)
downloadtqt3-0c50fad6c7792e3b1c3e1a019c99905c52927baf.tar.gz
tqt3-0c50fad6c7792e3b1c3e1a019c99905c52927baf.zip
Fixed "TQApplication::postEvent: Unexpected null receiver" warning message. This resolves bug 1901 and 1909.
Diffstat (limited to 'src/kernel/qwidget.cpp')
-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 ab36c4274..e37fa303d 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));
}