Code Cleanup
- Improved the consistency of info output regarding recurring task parent and child tasks.
This commit is contained in:
@@ -470,9 +470,6 @@ int handleInfo (std::string &outs)
|
||||
}
|
||||
}
|
||||
|
||||
if (task->getStatus () == Task::recurring ||
|
||||
task->has ("parent"))
|
||||
{
|
||||
// recur
|
||||
if (task->has ("recur"))
|
||||
{
|
||||
@@ -499,20 +496,19 @@ int handleInfo (std::string &outs)
|
||||
}
|
||||
|
||||
// mask
|
||||
if (task->has ("mask"))
|
||||
if (task->getStatus () == Task::recurring)
|
||||
{
|
||||
row = table.addRow ();
|
||||
table.addCell (row, 0, "Mask");
|
||||
table.addCell (row, 1, task->get ("mask"));
|
||||
}
|
||||
|
||||
// parent
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
// parent
|
||||
row = table.addRow ();
|
||||
table.addCell (row, 0, "Parent task");
|
||||
table.addCell (row, 1, task->get ("parent"));
|
||||
}
|
||||
|
||||
// imask
|
||||
row = table.addRow ();
|
||||
|
||||
Reference in New Issue
Block a user