Ignore:
File:
1 edited

Legend:

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

    rb5b01e r645f55  
    5252  unsigned int oldverbosity = getVerbosity();
    5353
     54  // prepare undo state
     55  CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params);
     56
    5457  if (oldverbosity != params.verbosity.get()) {
    55     // prepare undo state
    56     CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params);
    5758    // set new verbosity
    5859    setVerbosity(params.verbosity.get());
    5960    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;
    6463  }
     64  return ActionState::ptr(UndoState);
    6565}
    6666
Note: See TracChangeset for help on using the changeset viewer.