From 4ada2e2c43db9b105b5e0bba974b8ebdb6d7f6b8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 26 May 2014 13:50:56 -0400 Subject: [PATCH] Task - Tag add/remove details improved. --- src/Task.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index be2406316..b62407097 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -2103,15 +2103,18 @@ void Task::modify (modType type) // appropriate. else if ((*i)->hasTag ("TAG")) { - context.debug (label + "tags " + (*i)->attribute ("raw")); + std::string tag = (*i)->attribute ("tag"); if ((*i)->attribute ("sign") == "+") { - std::string tag = (*i)->attribute ("tag"); + context.debug (label + "tags <-- add '" + tag + "'"); addTag (tag); feedback_special_tags ((*this), tag); } else - removeTag ((*i)->attribute ("tag")); + { + context.debug (label + "tags <-- remove '" + tag + "'"); + removeTag (tag); + } } // WORD and TERMINATED args are accumulated.