From 0c50fad6c7792e3b1c3e1a019c99905c52927baf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 30 Jul 2014 14:36:53 +0900 Subject: Fixed "TQApplication::postEvent: Unexpected null receiver" warning message. This resolves bug 1901 and 1909. --- src/kernel/qwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/qwidget.cpp') 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)); } -- cgit v1.2.1