mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Bug Fix - #171
- Fixed bug that caused redundant information to be displayed when the "done" command was run. Thanks to John Florian.
This commit is contained in:
parent
84f48fd056
commit
9095934bc0
3 changed files with 17 additions and 14 deletions
|
@ -763,9 +763,7 @@ std::string handleDone ()
|
|||
|
||||
if (taskDiff (before, *task))
|
||||
{
|
||||
std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl;
|
||||
std::string question = taskDifferences (before, *task) + "Are you sure?";
|
||||
if (permission.confirmed (question))
|
||||
if (permission.confirmed (before, taskDifferences (before, *task) + "Are you sure?"))
|
||||
{
|
||||
context.tdb.update (*task);
|
||||
|
||||
|
@ -909,9 +907,7 @@ std::string handleModify ()
|
|||
|
||||
if (taskDiff (before, *other))
|
||||
{
|
||||
std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl;
|
||||
std::string question = taskDifferences (before, *other) + "Are you sure?";
|
||||
if (changes && permission.confirmed (question))
|
||||
if (changes && permission.confirmed (before, taskDifferences (before, *task) + "Are you sure?"))
|
||||
{
|
||||
context.tdb.update (*other);
|
||||
++count;
|
||||
|
@ -970,9 +966,7 @@ std::string handleAppend ()
|
|||
|
||||
if (taskDiff (before, *other))
|
||||
{
|
||||
std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl;
|
||||
std::string question = taskDifferences (before, *other) + "Are you sure?";
|
||||
if (changes && permission.confirmed (question))
|
||||
if (changes && permission.confirmed (before, taskDifferences (before, *task) + "Are you sure?"))
|
||||
{
|
||||
context.tdb.update (*other);
|
||||
|
||||
|
@ -1257,9 +1251,7 @@ std::string handleAnnotate ()
|
|||
|
||||
if (taskDiff (before, *task))
|
||||
{
|
||||
std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl;
|
||||
std::string question = taskDifferences (before, *task) + "Are you sure?";
|
||||
if (permission.confirmed (question))
|
||||
if (permission.confirmed (before, taskDifferences (before, *task) + "Are you sure?"))
|
||||
{
|
||||
context.tdb.update (*task);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue