Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-10-08 01:16:50 +0000
committerspingel2009-10-08 01:16:50 +0000
commit0d79f0766a20e416c7a304bb22eead2579f4e0ce (patch)
treeaa5262ef51681d9fdb81da02d87826099fc23cf3 /org.eclipse.mylyn.tasks.core
parentfeb992ab1499da4c25f5a795eae552a532efeceb (diff)
downloadorg.eclipse.mylyn.tasks-0d79f0766a20e416c7a304bb22eead2579f4e0ce.tar.gz
org.eclipse.mylyn.tasks-0d79f0766a20e416c7a304bb22eead2579f4e0ce.tar.xz
org.eclipse.mylyn.tasks-0d79f0766a20e416c7a304bb22eead2579f4e0ce.zip
NEW - bug 291698: resetting of activity fails
https://bugs.eclipse.org/bugs/show_bug.cgi?id=291698
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
index 0915842a0..81ff8d551 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
@@ -173,9 +173,10 @@ public class TaskActivityManager implements ITaskActivityManager {
for (Calendar cal : new HashSet<Calendar>(activityMap.keySet())) {
activityMap.remove(cal);
}
+ long elapsedTime = getElapsedTime(task);
for (ITaskActivityListener listener : new ArrayList<ITaskActivityListener>(activityListeners)) {
try {
- listener.elapsedTimeUpdated(task, getElapsedTime(task));
+ listener.elapsedTimeUpdated(task, elapsedTime);
} catch (Throwable t) {
StatusHandler.log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN,
"Task activity listener failed: \"" + listener + "\"", t)); //$NON-NLS-1$ //$NON-NLS-2$

Back to the top