Ignore:
File:
1 edited

Legend:

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

    r37ef6d r8d4eaa  
    6767  boost::archive::text_oarchive oa(undostream);
    6868  oa << periode;
    69   CommandElementDbState *UndoState =
    70       new CommandElementDbState(
    71           undostream.str(),
    72           params
    73           );
    7469
    7570  // get the path
     
    8176  periode->CleanupPeriodtable();
    8277  if (periode->LoadPeriodentafel(configuration->databasepath)) {
    83     LOG(0, "Element list loaded successfully.");
     78    STATUS("Element list loaded successfully.");
    8479    //periode->Output();
    85     return ActionState::ptr(UndoState);
     80    return ActionState::ptr(new CommandElementDbState(undostream.str(),params));
    8681  } else {
    87     LOG(0, "Element list loading failed.");
    88     delete UndoState;
     82    STATUS("Element list loading failed.");
    8983    return Action::failure;
    9084  }
     
    118112  periode->CleanupPeriodtable();
    119113  if (periode->LoadPeriodentafel(configuration->databasepath)) {
    120     LOG(0, "Element list loaded successfully.");
     114    STATUS("Redoing Element list loaded successfully.");
    121115    //periode->Output();
    122116    return ActionState::ptr(_state);
    123117  } else {
    124     LOG(0, "Element list loading failed.");
     118    STATUS("Redoing Element list loading failed.");
    125119    return Action::failure;
    126120  }
Note: See TracChangeset for help on using the changeset viewer.