diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-07-30 14:36:53 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-07-30 14:36:53 +0900 |
commit | 0c50fad6c7792e3b1c3e1a019c99905c52927baf (patch) | |
tree | a06f48d8e6ee8918ed6e2b7a47cde3eda4c0471d /src | |
parent | a44a713fec2e2c3678d64307620225c11cbe955b (diff) | |
download | tqt3-0c50fad6c7792e3b1c3e1a019c99905c52927baf.tar.gz tqt3-0c50fad6c7792e3b1c3e1a019c99905c52927baf.zip |
Fixed "TQApplication::postEvent: Unexpected null receiver" warning message. This resolves bug 1901 and 1909.
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/qwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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)); } |