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:
committed by
Tomas Babej
parent
db26a28bf9
commit
2ea6dd627e
@@ -33,8 +33,6 @@
|
||||
#include <format.h>
|
||||
#include <main.h>
|
||||
|
||||
extern Task* contextTask;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdDone::CmdDone ()
|
||||
{
|
||||
@@ -87,7 +85,6 @@ int CmdDone::execute (std::string&)
|
||||
task.identifier (true),
|
||||
task.get ("description"));
|
||||
|
||||
contextTask = &task;
|
||||
task.modify (Task::modAnnotate);
|
||||
task.setStatus (Task::completed);
|
||||
if (! task.has ("end"))
|
||||
|
||||
Reference in New Issue
Block a user