Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2011-08-26 13:15:45 -0400
committerSteffen Pingel2011-08-26 13:24:30 -0400
commita6e670eb0eec42de7e8bfe469dd5910f8305df87 (patch)
tree7235bed61ed2e30dd0cd6a1b0834e00db273b1dd /org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks
parentf8eb19c1bc0956b2067a93c2d6be68702ac8c806 (diff)
downloadorg.eclipse.mylyn.tasks-a6e670eb0eec42de7e8bfe469dd5910f8305df87.tar.gz
org.eclipse.mylyn.tasks-a6e670eb0eec42de7e8bfe469dd5910f8305df87.tar.xz
org.eclipse.mylyn.tasks-a6e670eb0eec42de7e8bfe469dd5910f8305df87.zip
NEW - bug 348969: [patch] TaskDataModelListener not removed when
attributes section not expanded https://bugs.eclipse.org/bugs/show_bug.cgi?id=348969
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor.java
index 49a6be87a..0ba7b0543 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor.java
@@ -95,7 +95,6 @@ public abstract class AbstractAttributeEditor {
setDecorationEnabled(true);
setReadOnly(taskAttribute.getMetaData().isReadOnly());
setDescription(taskAttribute.getMetaData().getValue(TaskAttribute.META_DESCRIPTION));
- getModel().addModelListener(modelListener);
}
/**
@@ -199,11 +198,13 @@ public abstract class AbstractAttributeEditor {
protected void setControl(Control control) {
if (this.control != null && !this.control.isDisposed()) {
this.control.removeDisposeListener(disposeListener);
+ getModel().removeModelListener(modelListener);
}
this.control = control;
if (control != null) {
control.setData(KEY_TASK_ATTRIBUTE, taskAttribute);
control.addDisposeListener(disposeListener);
+ getModel().addModelListener(modelListener);
}
}

Back to the top