Code Cleanup

- Improved the consistency of info output regarding recurring task
  parent and child tasks.
This commit is contained in:
Paul Beckingham 2010-08-31 23:02:16 -04:00
parent d8913c2f15
commit d3ca5c04e3

View file

@ -470,9 +470,6 @@ int handleInfo (std::string &outs)
} }
} }
if (task->getStatus () == Task::recurring ||
task->has ("parent"))
{
// recur // recur
if (task->has ("recur")) if (task->has ("recur"))
{ {
@ -499,20 +496,19 @@ int handleInfo (std::string &outs)
} }
// mask // mask
if (task->has ("mask")) if (task->getStatus () == Task::recurring)
{ {
row = table.addRow (); row = table.addRow ();
table.addCell (row, 0, "Mask"); table.addCell (row, 0, "Mask");
table.addCell (row, 1, task->get ("mask")); table.addCell (row, 1, task->get ("mask"));
} }
// parent
if (task->has ("parent")) if (task->has ("parent"))
{ {
// parent
row = table.addRow (); row = table.addRow ();
table.addCell (row, 0, "Parent task"); table.addCell (row, 0, "Parent task");
table.addCell (row, 1, task->get ("parent")); table.addCell (row, 1, task->get ("parent"));
}
// imask // imask
row = table.addRow (); row = table.addRow ();