Bug Fix - #312 Changing one task changes another

- Added a warning when modifying recurring tasks, that all instances of
  that task may be modified.  When task confirms a bulk edit the
  recurrence is again indicated (thanks to Cory Donnelly).
This commit is contained in:
Paul Beckingham
2009-11-16 23:24:47 -05:00
parent 6e673d2834
commit bc40ab63b3
5 changed files with 21 additions and 4 deletions

View File

@@ -57,8 +57,15 @@ bool Permission::confirmed (const Task& task, const std::string& question)
<< task.id
<< " \""
<< task.get ("description")
<< "\""
<< std::endl;
<< "\"";
if (task.getStatus () == Task::recurring ||
task.has ("parent"))
{
std::cout << " (Recurring)";
}
std::cout << std::endl;
int answer = confirm3 (question);
if (answer == 2)