Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java
index 061cc0fd2..7327e795e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java
@@ -121,12 +121,12 @@ public class MylarTasksPlugin extends AbstractUIPlugin implements IStartup {
private static ShellListener SHELL_LISTENER = new ShellListener() {
private void saveState() {
taskListManager.saveTaskList();
- for(ITask task : taskListManager.getTaskList().getActiveTasks()) {
- MylarPlugin.getTaskscapeManager().saveTaskscape(task.getHandle(), task.getPath());
- }
}
public void shellClosed(ShellEvent arg0) {
saveState();
+ for(ITask task : taskListManager.getTaskList().getActiveTasks()) {
+ MylarPlugin.getTaskscapeManager().saveTaskscape(task.getHandle(), task.getPath());
+ }
}
public void shellDeactivated(ShellEvent arg0) {
saveState();

Back to the top