move use of contextTask out of columns, into commands

This commit is contained in:
Dustin J. Mitchell
2021-12-18 01:49:48 +00:00
committed by Tomas Babej
parent e98b61f2b5
commit 6e9ad1048d
17 changed files with 44 additions and 35 deletions

View File

@@ -33,6 +33,8 @@
#include <format.h>
#include <util.h>
extern Task* contextTask;
////////////////////////////////////////////////////////////////////////////////
CmdStart::CmdStart ()
{
@@ -83,6 +85,7 @@ int CmdStart::execute (std::string&)
std::string question = format ("Start task {1} '{2}'?",
task.identifier (true),
task.get ("description"));
contextTask = &task;
task.modify (Task::modAnnotate);
task.setAsNow ("start");