mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
Just set contextTask in Task::modify
Based on the observation that every command was setting contextTask immediately before calling `task.modify(..)`.
This commit is contained in:
parent
db26a28bf9
commit
2ea6dd627e
11 changed files with 5 additions and 42 deletions
|
@ -33,8 +33,6 @@
|
|||
#include <util.h>
|
||||
#include <main.h>
|
||||
|
||||
extern Task* contextTask;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdDuplicate::CmdDuplicate ()
|
||||
{
|
||||
|
@ -102,7 +100,6 @@ int CmdDuplicate::execute (std::string&)
|
|||
dup.setStatus (Task::pending); // Does not inherit status.
|
||||
// Must occur after Task::recurring check.
|
||||
|
||||
contextTask = &dup;
|
||||
dup.modify (Task::modAnnotate);
|
||||
|
||||
if (permission (format ("Duplicate task {1} '{2}'?",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue