Do not run into an endless loop in case we have no containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741866
This commit is contained in:
parent
09f337b3fa
commit
05ae38296c
@ -1205,7 +1205,7 @@ void Applet::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
||||
|
||||
Applet* containment = dynamic_cast<Plasma::Applet*>(topLevelItem());
|
||||
|
||||
if (!containment) {
|
||||
if (!containment || containment == this) {
|
||||
//kDebug() << "no containment. hm.";
|
||||
Widget::contextMenuEvent(event);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user