- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/CommandAction/VerboseAction.cpp
r645f55 rb5b01e 52 52 unsigned int oldverbosity = getVerbosity(); 53 53 54 // prepare undo state55 CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params);56 57 54 if (oldverbosity != params.verbosity.get()) { 55 // prepare undo state 56 CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params); 58 57 // set new verbosity 59 58 setVerbosity(params.verbosity.get()); 60 59 LOG(0, "Setting verbosity from " << oldverbosity << " to " << params.verbosity.get() << "."); 60 return ActionState::ptr(UndoState); 61 61 } else { 62 62 LOG(0, "Verbosity remains unchanged at " << oldverbosity << "."); 63 return Action::success; 63 64 } 64 return ActionState::ptr(UndoState);65 65 } 66 66
Note:
See TracChangeset
for help on using the changeset viewer.