- Tag add/remove details improved.
This commit is contained in:
Paul Beckingham 2014-05-26 13:50:56 -04:00
parent c342159369
commit 4ada2e2c43

View file

@ -2103,15 +2103,18 @@ void Task::modify (modType type)
// appropriate. // appropriate.
else if ((*i)->hasTag ("TAG")) else if ((*i)->hasTag ("TAG"))
{ {
context.debug (label + "tags " + (*i)->attribute ("raw")); std::string tag = (*i)->attribute ("tag");
if ((*i)->attribute ("sign") == "+") if ((*i)->attribute ("sign") == "+")
{ {
std::string tag = (*i)->attribute ("tag"); context.debug (label + "tags <-- add '" + tag + "'");
addTag (tag); addTag (tag);
feedback_special_tags ((*this), tag); feedback_special_tags ((*this), tag);
} }
else else
removeTag ((*i)->attribute ("tag")); {
context.debug (label + "tags <-- remove '" + tag + "'");
removeTag (tag);
}
} }
// WORD and TERMINATED args are accumulated. // WORD and TERMINATED args are accumulated.