Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-07-19 11:04:02 -0400
committerSteffen Pingel2011-07-19 11:04:02 -0400
commit05608ac07c831d37c7c1929924912bc09c49a9c5 (patch)
tree1b8558455659325b55cc8469a38d7576c30f426e
parentaea786ee295d3dd24b06a88f1ddf8e19c813f7cc (diff)
downloadorg.eclipse.mylyn.tasks-05608ac07c831d37c7c1929924912bc09c49a9c5.tar.gz
org.eclipse.mylyn.tasks-05608ac07c831d37c7c1929924912bc09c49a9c5.tar.xz
org.eclipse.mylyn.tasks-05608ac07c831d37c7c1929924912bc09c49a9c5.zip
NEW - bug 350043: extra separator in menu if activation history is empty
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350043
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskHistoryDropDown.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskHistoryDropDown.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskHistoryDropDown.java
index 1fadf55e4..6484408b1 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskHistoryDropDown.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskHistoryDropDown.java
@@ -193,8 +193,10 @@ public class TaskHistoryDropDown extends CompoundContributionItem {
items.add(item);
}
- Separator separator = new Separator();
- items.add(separator);
+ if (items.size() > 0) {
+ Separator separator = new Separator();
+ items.add(separator);
+ }
ITask active = TasksUi.getTaskActivityManager().getActiveTask();
if (active != null) {

Back to the top