From 75054617c4f8a91e415466e90edda080735021a5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 6 Jul 2009 18:51:18 -0400 Subject: [PATCH] Bug Fix - Fixed bug found by John Florian that fails to delete all recurring tasks, after task has confirmed that is what is wanted. --- src/command.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index 24bbcac21..d5f6cb352 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -535,6 +535,7 @@ std::string handleDelete () context.tdb.loadPending (tasks, context.filter); // Filter sequence. + std::vector all = tasks; context.filter.applySequence (tasks, context.sequence); // Determine the end date. @@ -561,7 +562,7 @@ std::string handleDelete () { // Scan all pending tasks for siblings of this task, and the parent // itself, and delete them. - foreach (sibling, tasks) + foreach (sibling, all) { if (sibling->get ("parent") == parent || sibling->get ("uuid") == parent) @@ -584,7 +585,7 @@ std::string handleDelete () { // Update mask in parent. task->setStatus (Task::deleted); - updateRecurrenceMask (tasks, *task); + updateRecurrenceMask (all, *task); task->set ("end", endTime); context.tdb.update (*task);