mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TD-64: sync conflict deleted all annotations of the task
- Thanks to Markus Beppler, Konstantin Vorobyev.
This commit is contained in:
parent
bc34397e9b
commit
eb09df0e6a
3 changed files with 9 additions and 1 deletions
|
@ -270,6 +270,9 @@ void Task::set (const std::string& name, const std::string& value)
|
|||
{
|
||||
data[name] = json::decode (value);
|
||||
|
||||
if (! name.compare (0, 11, "annotation_", 11))
|
||||
++annotation_count;
|
||||
|
||||
recalc_urgency = true;
|
||||
}
|
||||
|
||||
|
@ -286,6 +289,9 @@ void Task::remove (const std::string& name)
|
|||
{
|
||||
if (data.erase (name))
|
||||
recalc_urgency = true;
|
||||
|
||||
if (! name.compare (0, 11, "annotation_", 11))
|
||||
--annotation_count;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue