- Fixed bug #942, which only allowed dates to be edited if they changed day
  (thanks to Owen Clarke).
This commit is contained in:
Paul Beckingham 2012-02-27 20:10:19 -05:00
parent e42a5a831a
commit 8c0971425f
2 changed files with 8 additions and 6 deletions

View file

@ -271,6 +271,8 @@
+ Fixed bug #937, which failed 'stat' calls on Solaris (thanks to Owen Clarke).
+ Fixed bug #938, which corrected compiler warnings on Solaris (thanks to Owen
Clarke).
+ Fixed bug #942, which only allowed dates to be edited if they changed day
(thanks to Owen Clarke).
# Untracked Bugs, biggest first.
+ Fixed bug that required the '%YAML' prologue in a YAML import.

View file

@ -291,7 +291,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after)
Date edited (strtol (value.c_str (), NULL, 10));
Date original (task.get_date ("entry"));
if (!original.sameDay (edited))
if (original != edited)
{
context.footnote (STRING_EDIT_ENTRY_MOD);
task.set ("entry", value);
@ -309,7 +309,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after)
if (task.get ("start") != "")
{
Date original (task.get_date ("start"));
if (!original.sameDay (edited))
if (original != edited)
{
context.footnote (STRING_EDIT_START_MOD);
task.set ("start", value);
@ -339,7 +339,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after)
if (task.get ("end") != "")
{
Date original (task.get_date ("end"));
if (!original.sameDay (edited))
if (original != edited)
{
context.footnote (STRING_EDIT_END_MOD);
task.set ("end", value);
@ -367,7 +367,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after)
if (task.get ("due") != "")
{
Date original (task.get_date ("due"));
if (!original.sameDay (edited))
if (original != edited)
{
context.footnote (STRING_EDIT_DUE_MOD);
task.set ("due", value);
@ -405,7 +405,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after)
if (task.get ("until") != "")
{
Date original (task.get_date ("until"));
if (!original.sameDay (edited))
if (original != edited)
{
context.footnote (STRING_EDIT_UNTIL_MOD);
task.set ("until", value);
@ -467,7 +467,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after)
if (task.get ("wait") != "")
{
Date original (task.get_date ("wait"));
if (!original.sameDay (edited))
if (original != edited)
{
context.footnote (STRING_EDIT_WAIT_MOD);
task.set ("wait", value);