Commands - done

- The 'done' command now functional.
- Localized CmdDone.cpp.
This commit is contained in:
Paul Beckingham 2011-06-26 23:28:21 -04:00
parent 1b90adc1aa
commit 877ecbc864
6 changed files with 54 additions and 48 deletions

View file

@ -360,7 +360,9 @@ void Command::modify_task (Task& task, Arguments& arguments)
throw format (STRING_CMD_MOD_UNEXPECTED, arg->first);
}
task.set ("description", description);
// Only update description if one was specified.
if (description.length ())
task.set ("description", description);
}
////////////////////////////////////////////////////////////////////////////////