Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/CommandAction/VerboseAction.cpp

    r645f55 rb5b01e  
    5252  unsigned int oldverbosity = getVerbosity();
    5353
    54   // prepare undo state
    55   CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params);
    56 
    5754  if (oldverbosity != params.verbosity.get()) {
     55    // prepare undo state
     56    CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params);
    5857    // set new verbosity
    5958    setVerbosity(params.verbosity.get());
    6059    LOG(0, "Setting verbosity from " << oldverbosity << " to " << params.verbosity.get() << ".");
     60    return ActionState::ptr(UndoState);
    6161  } else {
    6262    LOG(0, "Verbosity remains unchanged at " << oldverbosity << ".");
     63    return Action::success;
    6364  }
    64   return ActionState::ptr(UndoState);
    6565}
    6666
Note: See TracChangeset for help on using the changeset viewer.