From 28fe7420fcad6a5342e856aebae1fc780fa8e164 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 9 Feb 2014 13:25:36 -0500 Subject: [PATCH] Bug #TW-255 - #TW-255 'Mask' instead of 'iMask' shown in info report (thanks to Benjamin Weber) --- ChangeLog | 2 ++ src/commands/CmdInfo.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ff05db8a5..9d2219c81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ Features + #1492 task show to display default values when appropriate (thanks to Renato Alves). + #1501 info report streamlining - partially implemented. + + #TW-255 'Mask' instead of 'iMask' shown in info report (thanks to Benjamin + Weber) + Removed deprecated 'echo.command' setting, in favor of the 'header' and 'affected' verbosity tokens. + Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity diff --git a/src/commands/CmdInfo.cpp b/src/commands/CmdInfo.cpp index 9a64943be..1e95d63c7 100644 --- a/src/commands/CmdInfo.cpp +++ b/src/commands/CmdInfo.cpp @@ -194,14 +194,17 @@ int CmdInfo::execute (std::string& output) view.set (row, 1, task->get ("recur")); } + // parent if (task->has ("parent")) { - // parent row = view.addRow (); view.set (row, 0, STRING_COLUMN_LABEL_PARENT); view.set (row, 1, task->get ("parent")); + } - // mask + // mask + if (task->has ("mask")) + { row = view.addRow (); view.set (row, 0, STRING_COLUMN_LABEL_MASK); view.set (row, 1, task->get ("mask"));