mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 00:43:07 +02:00
commands: Do not remove wait attribute upon task completion/deletion
This commit is contained in:
parent
ea008380db
commit
861e8a6414
2 changed files with 0 additions and 8 deletions
|
@ -92,10 +92,6 @@ int CmdDelete::execute (std::string&)
|
||||||
if (! task.has ("end"))
|
if (! task.has ("end"))
|
||||||
task.setAsNow ("end");
|
task.setAsNow ("end");
|
||||||
|
|
||||||
// Un-wait the task, if waiting.
|
|
||||||
if (task.has ("wait"))
|
|
||||||
task.remove ("wait");
|
|
||||||
|
|
||||||
if (permission (question, filtered.size ()))
|
if (permission (question, filtered.size ()))
|
||||||
{
|
{
|
||||||
updateRecurrenceMask (task);
|
updateRecurrenceMask (task);
|
||||||
|
|
|
@ -98,10 +98,6 @@ int CmdDone::execute (std::string&)
|
||||||
task.addAnnotation (Context::getContext ().config.get ("journal.time.stop.annotation"));
|
task.addAnnotation (Context::getContext ().config.get ("journal.time.stop.annotation"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Un-wait the task, if waiting.
|
|
||||||
if (task.has ("wait"))
|
|
||||||
task.remove ("wait");
|
|
||||||
|
|
||||||
if (permission (taskDifferences (before, task) + question, filtered.size ()))
|
if (permission (taskDifferences (before, task) + question, filtered.size ()))
|
||||||
{
|
{
|
||||||
updateRecurrenceMask (task);
|
updateRecurrenceMask (task);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue