- Fix a bug where CmdEdit reported modifications to a duration UDA
  when no modifications were made.
This commit is contained in:
Scott Kostyshak 2014-01-10 04:56:46 -05:00 committed by Paul Beckingham
parent de1e413d73
commit dc2e0c1c97
2 changed files with 4 additions and 1 deletions

View file

@ -675,7 +675,9 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
{
std::string value = findValue (after, "\n UDA " + col->first + ":");
if ((task.get (col->first) != value) && (type != "date" ||
(task.get (col->first) != Date (value, dateformat).toEpochString ())))
(task.get (col->first) != Date (value, dateformat).toEpochString ())) &&
(type != "duration" ||
(task.get (col->first) != (std::string) Duration (value) )))
{
if (value != "")
{