- Fixed bug #634, so that 'undo' obeys the 'confirmation' setting (thanks to
  Steve Rader).
This commit is contained in:
Paul Beckingham 2011-02-12 15:08:57 -05:00
parent afb89f0add
commit a65fe591b8
4 changed files with 8 additions and 4 deletions

View file

@ -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");