diff --git a/containment.cpp b/containment.cpp index b033229b1..2a82b6e8f 100644 --- a/containment.cpp +++ b/containment.cpp @@ -223,6 +223,12 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) //FIXME: change this to show this only in debug mode (or not at all?) // before final release QList actions = contextActions(); + + if (actions.count() < 1) { + QGraphicsItem::contextMenuEvent(event); + return; + } + foreach(QAction* action, actions) { desktopMenu.addAction(action); }