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() void TQWidget::updateGeometry()
{ {
if ( !isTopLevel() && isShown() ) TQWidget *parent = parentWidget();
TQApplication::postEvent( parentWidget(), if (parent && !isTopLevel() && isShown())
new TQEvent( TQEvent::LayoutHint ) ); TQApplication::postEvent(parent, new TQEvent(TQEvent::LayoutHint));
} }

Loading…
Cancel
Save