Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionSequence.cpp

    raf5384 rc17aa8  
    3737#include "Actions/ActionSequence.hpp"
    3838#include "Actions/Action.hpp"
     39#include "Actions/ActionExceptions.hpp"
    3940#include "UIElements/Dialog.hpp"
    4041
     
    5354{
    5455  // we need to override copy cstor as we have pointer referenced objects
    55   for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){
     56  for(actionSet::const_iterator it=_other.actions.begin(); it!=_other.actions.end(); it++){
    5657    actions.push_back((*it)->clone());
    5758  }
     
    119120      // we bypass the normal call
    120121      ActionState::ptr state = (*it)->performCall();
     122      if (state == Action::failure)
     123        throw ActionFailureException() << ActionNameString((*it)->getName());
    121124      states.push_back(state);
    122125    }
Note: See TracChangeset for help on using the changeset viewer.