fix applet detection, don't mistake a containment for an applet in the context menu code path

BUG:156596

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770208
This commit is contained in:
Aaron J. Seigo 2008-02-03 00:51:15 +00:00
parent 7ea2da7eeb
commit a6b4d53d83

View File

@ -221,6 +221,8 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
break;
}
// applet may have a value due to finding a containment!
applet = 0;
item = item->parentItem();
}
@ -274,8 +276,6 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
return;
}
//FIXME: change this to show this only in debug mode (or not at all?)
// before final release
QList<QAction*> actions = contextActions();
if (actions.count() < 1) {