Fix infinite loop

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=717393
This commit is contained in:
Matías Costa 2007-09-26 20:15:42 +00:00
parent 67322b0367
commit f4efdfa1f0

View File

@ -425,7 +425,7 @@ void Widget::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent)
}
while (item && item->parentItem()) {
item = dynamic_cast<Widget*>(parentItem()); //item->parentItem();
item = dynamic_cast<Widget*>(item->parentItem());
}
if (!item) {