0c50fad6 | 2014-07-30 00:36:53 | Michele Calgaro |
Fixed "TQApplication::postEvent: Unexpected null receiver" warning message. This resolves bug 1901 and 1909. |
||
M src/kernel/qwidget.cpp |
||
diff --git a/src/kernel/qwidget.cpp b/src/kernel/qwidget.cpp index ab36c42..e37fa30 100644 --- a/src/kernel/qwidget.cpp +++ b/src/kernel/qwidget.cpp @@ -5984,9 +5984,9 @@ 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)); } |