summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/qwidget.cpp6
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));
}