mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1293, TW-1294
- TW-1293 Modifying or deleting a child task does not propagate if there are no siblings (thanks to darkfeline). - TW-1294 Modifying a child task does not propagate to parent (thanks to darkfeline).
This commit is contained in:
parent
e3d7479211
commit
68ceea953a
6 changed files with 20 additions and 15 deletions
|
@ -103,10 +103,9 @@ int CmdDelete::execute (std::string& output)
|
|||
// Delete siblings.
|
||||
if (task->has ("parent"))
|
||||
{
|
||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||
if (siblings.size () &&
|
||||
confirm (STRING_CMD_DELETE_CONFIRM_R))
|
||||
if (confirm (STRING_CMD_DELETE_CONFIRM_R))
|
||||
{
|
||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||
std::vector <Task>::iterator sibling;
|
||||
for (sibling = siblings.begin (); sibling != siblings.end (); ++sibling)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue