- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/CommandAction/ElementDbAction.cpp
r8d4eaa r37ef6d 67 67 boost::archive::text_oarchive oa(undostream); 68 68 oa << periode; 69 CommandElementDbState *UndoState = 70 new CommandElementDbState( 71 undostream.str(), 72 params 73 ); 69 74 70 75 // get the path … … 76 81 periode->CleanupPeriodtable(); 77 82 if (periode->LoadPeriodentafel(configuration->databasepath)) { 78 STATUS("Element list loaded successfully.");83 LOG(0, "Element list loaded successfully."); 79 84 //periode->Output(); 80 return ActionState::ptr( new CommandElementDbState(undostream.str(),params));85 return ActionState::ptr(UndoState); 81 86 } else { 82 STATUS("Element list loading failed."); 87 LOG(0, "Element list loading failed."); 88 delete UndoState; 83 89 return Action::failure; 84 90 } … … 112 118 periode->CleanupPeriodtable(); 113 119 if (periode->LoadPeriodentafel(configuration->databasepath)) { 114 STATUS("RedoingElement list loaded successfully.");120 LOG(0, "Element list loaded successfully."); 115 121 //periode->Output(); 116 122 return ActionState::ptr(_state); 117 123 } else { 118 STATUS("RedoingElement list loading failed.");124 LOG(0, "Element list loading failed."); 119 125 return Action::failure; 120 126 }
Note:
See TracChangeset
for help on using the changeset viewer.