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