Code Cleanup

- Remove duplicate modify call to TDB2.
- Check if quitting in bulk change only if permission fails.
- Correct test logic (the unit for each operation is the second, not the day).
- Consistency in test for feature.1013.t
- Correctly color deleted tasks.

test
This commit is contained in:
Louis-Claude Canon 2012-07-03 17:33:21 +02:00 committed by Paul Beckingham
parent 39456a3243
commit 160260ff48
13 changed files with 34 additions and 35 deletions

View file

@ -99,7 +99,6 @@ int CmdDone::execute (std::string& output)
++count;
feedback_affected (STRING_CMD_DONE_TASK, *task);
feedback_unblocked (*task);
context.tdb2.modify (*task);
if (!nagged)
nagged = nag (*task);
dependencyChainOnComplete (*task);
@ -109,10 +108,10 @@ int CmdDone::execute (std::string& output)
else
{
std::cout << STRING_CMD_DONE_NO << "\n";
rc = 1;
rc = 1;
if (_permission_quit)
break;
}
if (_permission_quit)
break;
}
else
{