- The modify command no longer claims that a task was modified if no
  changes were applied.
This commit is contained in:
Paul Beckingham 2011-09-11 13:49:07 -04:00
parent 19f598419e
commit 9ada2f554a
3 changed files with 26 additions and 25 deletions

View file

@ -78,7 +78,8 @@ int CmdModify::execute (std::string& output)
Task before (*task);
modify_task_description_replace (*task, modifications);
if (permission.confirmed (*task, taskDifferences (before, *task) + "Proceed with change?"))
if (taskDiff (before, *task) &&
permission.confirmed (*task, taskDifferences (before, *task) + "Proceed with change?"))
{
++count;
context.tdb2.modify (*task);