From 38daf415ff7de8df8f230d9c0abe8395ce4c392b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 30 Dec 2014 23:24:54 -0500 Subject: [PATCH] TW-1482 - TW-1482 Priority values may be 'H', 'M' or 'L', not ''. --- ChangeLog | 1 + src/Task.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4dc8969c6..2532502d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -232,6 +232,7 @@ - TW-1471 task calc uses output it doesn't understand (thanks to Jens Erat). - TW-1477 Incompatibility with recurring tasks created with 2.3.0 (thanks to David Costa). +- TW-1482 Priority values may be 'H', 'M' or 'L', not ''. - Added new holidays.xy-XY.rc definition files - Removed deprecated 'echo.command' setting, in favor of the 'header' and 'affected' verbosity tokens. diff --git a/src/Task.cpp b/src/Task.cpp index a385dbff7..66ac38e20 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1486,7 +1486,8 @@ void Task::validate (bool applyDefault /* = true */) std::string priority = get ("priority"); if (priority != "H" && priority != "M" && - priority != "L") + priority != "L" && + priority != "") throw format (STRING_TASK_VALID_PRIORITY, priority); } }