From kde-commits Thu Jan 31 23:01:47 2008 From: Sebastian Sauer Date: Thu, 31 Jan 2008 23:01:47 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/tasks Message-Id: <1201820507.374336.32343.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120182051922409 SVN commit 769261 by sebsauer: pfff, it isn't that easy :-/ M +8 -1 tasks.cpp --- trunk/KDE/kdebase/workspace/plasma/applets/tasks/tasks.cpp #769260:769261 @@ -115,7 +115,14 @@ // provide to us. This allows us to e.g. display also the "Configure Panel" action // the panelcontainment does provide if we right-click on the task-applet that is // embedded within the panel. - return containment() ? containment()->contextActions() : QList(); + + //TODO we don't like to display e.g. the desktop's context-menu. This ugly hack + // does only show the context-actions if we are really inside a panel. + if (containment() && strcmp(containment()->metaObject()->className(),"Panel") == 0) { + return containment() ? containment()->contextActions() : QList(); + } + + return QList(); } void Tasks::registerStartingTasks()