From 45202c292b1652f53c3307aa7fb6747f399a4906 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Tue, 15 Jan 2013 02:48:38 -0500 Subject: [PATCH] Bug - Fix regression introduced in 73043b86 where UDA edits were not detected for non-date types. --- src/commands/CmdEdit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index 3a8580d16..ea6140a19 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -685,9 +685,8 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string if (type != "") { 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 ())) + if ((task.get (col->first) != value) && (type != "date" || + (task.get (col->first) != Date(value, dateformat).toEpochString ()))) { if (value != "") {