mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
Bug fix - hang on cygwin when task updated.
- Fixed bug that caused a hang on cygwin, when a task with multiple annotations was edited (thanks to Joe Pulliam).
This commit is contained in:
parent
5b96dbbce8
commit
64bc2a165a
2 changed files with 9 additions and 3 deletions
|
@ -4,6 +4,8 @@
|
||||||
1.8.4 ()
|
1.8.4 ()
|
||||||
+ Fixed bug that caused wait: dates to not be properly rendered in a
|
+ Fixed bug that caused wait: dates to not be properly rendered in a
|
||||||
readable and preferred format with the "edit" command.
|
readable and preferred format with the "edit" command.
|
||||||
|
+ Fixed bug that caused a hang on cygwin, when a task with multiple
|
||||||
|
annotations was edited (thanks to Joe Pulliam).
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
10
src/Task.cpp
10
src/Task.cpp
|
@ -441,10 +441,14 @@ void Task::addAnnotation (const std::string& description)
|
||||||
void Task::removeAnnotations ()
|
void Task::removeAnnotations ()
|
||||||
{
|
{
|
||||||
// Erase old annotations.
|
// Erase old annotations.
|
||||||
Record::iterator i;
|
Record::iterator i = this->begin ();
|
||||||
for (i = this->begin (); i != this->end (); ++i)
|
while (i != this->end ())
|
||||||
|
{
|
||||||
if (i->first.substr (0, 11) == "annotation_") // No i18n
|
if (i->first.substr (0, 11) == "annotation_") // No i18n
|
||||||
this->erase (i);
|
this->erase (i++);
|
||||||
|
else
|
||||||
|
i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue