From 89a387b76d3d906e1f5a441e710eb24e1bc8c2a3 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Sun, 2 Dec 2007 11:19:26 +0000 Subject: [PATCH] Cast the parent being checked rather than parentItem() svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=743922 --- widgets/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/widget.cpp b/widgets/widget.cpp index 1b113a5ae..d59cb28bd 100644 --- a/widgets/widget.cpp +++ b/widgets/widget.cpp @@ -298,7 +298,7 @@ Widget *Widget::parent() const QGraphicsItem *parent = parentItem(); while (parent) { - Widget *parentWidget = dynamic_cast(parentItem()); + Widget *parentWidget = dynamic_cast(parent); if (parentWidget) { return parentWidget;