[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/tasks
From: Sebastian Sauer <mail () dipe ! org>
Date: 2008-01-31 23:01:47
Message-ID: 1201820507.374336.32343.nullmailer () svn ! kde ! org
[Download RAW message or body]
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<QAction*>();
+
+ //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<QAction*>();
+ }
+
+ return QList<QAction*>();
}
void Tasks::registerStartingTasks()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic