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

(cherry picked from commit cbeacf0de9)
v3.5.13-sru
Michele Calgaro 10 years ago committed by Slávek Banko
parent 2f51a9410a
commit 7e2db04621

@ -5943,9 +5943,9 @@ QWidget *QWidget::childAt( const QPoint & p, bool includeThis ) const
void QWidget::updateGeometry()
{
if ( !isTopLevel() && isShown() )
QApplication::postEvent( parentWidget(),
new QEvent( QEvent::LayoutHint ) );
QWidget *parent = parentWidget();
if (parent && !isTopLevel() && isShown())
QApplication::postEvent(parent, new QEvent(QEvent::LayoutHint));
}

Loading…
Cancel
Save