TD-64: sync conflict deleted all annotations of the task

- Thanks to Markus Beppler, Konstantin Vorobyev.
This commit is contained in:
Paul Beckingham 2016-02-28 11:09:00 -05:00
parent bc34397e9b
commit eb09df0e6a
3 changed files with 9 additions and 1 deletions

View file

@ -126,7 +126,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
Sunil Joshi
Misty De Meo
Kent R. Spillner
Konstantin
Konstantin Vorobyev
Thanks to the following, who submitted detailed bug reports and excellent
suggestions:

View file

@ -1,5 +1,7 @@
2.6.0 () -
- TD-64 sync conflict deleted all annotations of the task
(thanks to Markus Beppler, Konstantin Vorobyev).
- Removed deprecated 'alias._query' setting.
------ current release ---------------------------

View file

@ -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;
}
////////////////////////////////////////////////////////////////////////////////