Ignore:
File:
1 edited

Legend:

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

    r8d4eaa r37ef6d  
    6767  boost::archive::text_oarchive oa(undostream);
    6868  oa << periode;
     69  CommandElementDbState *UndoState =
     70      new CommandElementDbState(
     71          undostream.str(),
     72          params
     73          );
    6974
    7075  // get the path
     
    7681  periode->CleanupPeriodtable();
    7782  if (periode->LoadPeriodentafel(configuration->databasepath)) {
    78     STATUS("Element list loaded successfully.");
     83    LOG(0, "Element list loaded successfully.");
    7984    //periode->Output();
    80     return ActionState::ptr(new CommandElementDbState(undostream.str(),params));
     85    return ActionState::ptr(UndoState);
    8186  } else {
    82     STATUS("Element list loading failed.");
     87    LOG(0, "Element list loading failed.");
     88    delete UndoState;
    8389    return Action::failure;
    8490  }
     
    112118  periode->CleanupPeriodtable();
    113119  if (periode->LoadPeriodentafel(configuration->databasepath)) {
    114     STATUS("Redoing Element list loaded successfully.");
     120    LOG(0, "Element list loaded successfully.");
    115121    //periode->Output();
    116122    return ActionState::ptr(_state);
    117123  } else {
    118     STATUS("Redoing Element list loading failed.");
     124    LOG(0, "Element list loading failed.");
    119125    return Action::failure;
    120126  }
Note: See TracChangeset for help on using the changeset viewer.