- Fix regression introduced in 73043b86 where UDA edits
  were not detected for non-date types.
This commit is contained in:
Scott Kostyshak 2013-01-15 02:48:38 -05:00 committed by Paul Beckingham
parent 55813b6a09
commit 45202c292b

View file

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