Fixed "TQApplication::postEvent: Unexpected null receiver" warning message. This resolves bug 1901 and 1909.

pull/1/head
Michele Calgaro 10 years ago
parent a44a713fec
commit 0c50fad6c7

@ -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));
}

Loading…
Cancel
Save