Commits

flupp committed 0d60679

added context menu entry for smooth-tasks configuration (copied from default plasma task bar)

  • Participants
  • Parent commits 9c19348

Comments (0)

Files changed (1)

File applet/SmoothTasks/Applet.cpp

 }
 
 TaskManager::BasicMenu* Applet::popup(Task *task) {
+	QList <QAction*> actionList;
+
+	QAction *configAction = action("configure");
+	if (configAction && configAction->isEnabled()) {
+		actionList.append(configAction);
+	}
+
 	if (task && task->isValid()) {
 		switch (task->type()) {
 			case Task::TaskItem:
 				return new TaskManager::BasicMenu(
 					NULL, task->taskItem(),
-					m_groupManager);
+					m_groupManager, actionList);
 
 			case Task::GroupItem:
 				return new TaskManager::BasicMenu(
 					NULL, task->group(),
-					m_groupManager);
+					m_groupManager, actionList);
 				
 			case Task::LauncherItem:
 				return new TaskManager::BasicMenu(
 					NULL, task->launcherItem(),
-					m_groupManager);
+					m_groupManager, actionList);
 				
 			default:
 				break;