ItEr50S04ValidacionEProbasFuncionaisItEr49S04: When removing a task from the task list it's removed from the original tasks

This commit is contained in:
Óscar González Fernández 2010-03-09 23:55:36 +01:00
parent d64ef27ee6
commit 64fa18a5c5

View file

@ -327,6 +327,7 @@ public class TaskList extends XulElement implements AfterCompose {
}
public void remove(Task task) {
originalTasks.remove(task);
for (TaskComponent taskComponent : getTaskComponents()) {
if (taskComponent.getTask().equals(task)) {
taskComponent.remove();