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:
parent
7ea2da7eeb
commit
a6b4d53d83
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user