mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug - Confirmation
- Confirmation for multiple task changes was not being sought.
This commit is contained in:
parent
9fee765d35
commit
8cd1efd609
1 changed files with 72 additions and 69 deletions
|
@ -76,8 +76,10 @@ int CmdModify::execute (std::string& output)
|
|||
for (task = filtered.begin (); task != filtered.end (); ++task)
|
||||
{
|
||||
Task before (*task);
|
||||
|
||||
modify_task_description_replace (*task, modifications);
|
||||
|
||||
if (permission.confirmed (*task, taskDifferences (before, *task) + "Proceed with change?"))
|
||||
{
|
||||
++count;
|
||||
context.tdb2.modify (*task);
|
||||
|
||||
|
@ -156,6 +158,7 @@ int CmdModify::execute (std::string& output)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
context.tdb2.commit ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue