Don't try and display the containment context menu when isContainment() is
false. Also, call Applet's contextMenuEvent() rather than calling QGraphicsItem's directly. CCBUG: 154552 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753472
This commit is contained in:
parent
a5ad6a0675
commit
cf71ae2c36
@ -211,8 +211,8 @@ Corona* Containment::corona() const
|
||||
void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
|
||||
{
|
||||
//kDebug() << "let's see if we manage to get a context menu here, huh";
|
||||
if (!scene() || !KAuthorized::authorizeKAction("desktop_contextmenu")) {
|
||||
QGraphicsItem::contextMenuEvent(event);
|
||||
if (!isContainment() || !scene() || !KAuthorized::authorizeKAction("desktop_contextmenu")) {
|
||||
Applet::contextMenuEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user