mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
move use of contextTask out of columns, into commands
This commit is contained in:
parent
e98b61f2b5
commit
6e9ad1048d
17 changed files with 44 additions and 35 deletions
|
@ -33,6 +33,8 @@
|
|||
#include <util.h>
|
||||
#include <main.h>
|
||||
|
||||
extern Task* contextTask;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdDuplicate::CmdDuplicate ()
|
||||
{
|
||||
|
@ -100,6 +102,7 @@ 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