CmdStart
- Converted from A3 modifications to Task::modify.
This commit is contained in:
@@ -62,9 +62,6 @@ int CmdStart::execute (std::string& output)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply the command line modifications to the new task.
|
|
||||||
A3 modifications = context.a3.extract_modifications ();
|
|
||||||
|
|
||||||
// Accumulated project change notifications.
|
// Accumulated project change notifications.
|
||||||
std::map <std::string, std::string> projectChanges;
|
std::map <std::string, std::string> projectChanges;
|
||||||
|
|
||||||
@@ -80,8 +77,7 @@ int CmdStart::execute (std::string& output)
|
|||||||
std::string question = format (STRING_CMD_START_CONFIRM,
|
std::string question = format (STRING_CMD_START_CONFIRM,
|
||||||
task->id,
|
task->id,
|
||||||
task->get ("description"));
|
task->get ("description"));
|
||||||
|
task->modify (Task::modAnnotate);
|
||||||
modify_task_annotate (*task, modifications);
|
|
||||||
task->setStart ();
|
task->setStart ();
|
||||||
|
|
||||||
if (context.config.getBoolean ("journal.time"))
|
if (context.config.getBoolean ("journal.time"))
|
||||||
|
|||||||
Reference in New Issue
Block a user