mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TDB2
- Removed hook processing that is now in the wrong place.
This commit is contained in:
parent
10fa21851b
commit
f3c035d2b8
1 changed files with 2 additions and 12 deletions
14
src/TDB2.cpp
14
src/TDB2.cpp
|
@ -151,10 +151,6 @@ bool TF2::has (const std::string& uuid)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void TF2::add_task (Task& task)
|
void TF2::add_task (Task& task)
|
||||||
{
|
{
|
||||||
bool enabled = context.hooks.enable (false);
|
|
||||||
context.hooks.onAdd (task);
|
|
||||||
context.hooks.enable (enabled);
|
|
||||||
|
|
||||||
_tasks.push_back (task); // For subsequent queries
|
_tasks.push_back (task); // For subsequent queries
|
||||||
_added_tasks.push_back (task); // For commit/synch
|
_added_tasks.push_back (task); // For commit/synch
|
||||||
|
|
||||||
|
@ -183,14 +179,8 @@ bool TF2::modify_task (const Task& task)
|
||||||
{
|
{
|
||||||
if (i->get ("uuid") == uuid)
|
if (i->get ("uuid") == uuid)
|
||||||
{
|
{
|
||||||
Task hookTask (task);
|
*i = task;
|
||||||
|
_modified_tasks.push_back (task);
|
||||||
bool enabled = context.hooks.enable (false);
|
|
||||||
context.hooks.onModify (*i, hookTask);
|
|
||||||
context.hooks.enable (enabled);
|
|
||||||
|
|
||||||
*i = hookTask;
|
|
||||||
_modified_tasks.push_back (hookTask);
|
|
||||||
_dirty = true;
|
_dirty = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue