- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/CommandAction/VerboseAction.cpp
rb5b01e r645f55 52 52 unsigned int oldverbosity = getVerbosity(); 53 53 54 // prepare undo state 55 CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params); 56 54 57 if (oldverbosity != params.verbosity.get()) { 55 // prepare undo state56 CommandVerboseState *UndoState = new CommandVerboseState(oldverbosity, params);57 58 // set new verbosity 58 59 setVerbosity(params.verbosity.get()); 59 60 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;64 63 } 64 return ActionState::ptr(UndoState); 65 65 } 66 66
Note:
See TracChangeset
for help on using the changeset viewer.