mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #634
- Fixed bug #634, so that 'undo' obeys the 'confirmation' setting (thanks to Steve Rader).
This commit is contained in:
parent
afb89f0add
commit
a65fe591b8
4 changed files with 8 additions and 4 deletions
|
@ -999,7 +999,8 @@ void TDB::undo ()
|
|||
}
|
||||
|
||||
// Output displayed, now confirm.
|
||||
if (!confirm ("The undo command is not reversible. Are you sure you want to revert to the previous state?"))
|
||||
if (context.config.getBoolean ("confirmation") &&
|
||||
!confirm ("The undo command is not reversible. Are you sure you want to revert to the previous state?"))
|
||||
{
|
||||
std::cout << "No changes made.\n";
|
||||
context.hooks.trigger ("post-undo");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue