}
catch (failed_constructor& err) {
- // cout << compose (_("could not create crossfade object in playlist %1"),
+ // cout << string_compose (_("could not create crossfade object in playlist %1"),
// _name)
// << endl;
continue;
for (Crossfades::const_iterator i = _crossfades.begin(); i != _crossfades.end(); ++i) {
state->crossfade_states.push_back ((*i)->get_memento());
}
-
return state;
}
regions = apstate->regions;
for (list<UndoAction>::iterator s = apstate->region_states.begin(); s != apstate->region_states.end(); ++s) {
- *s;
+ (*s) ();
}
_crossfades = apstate->crossfades;
for (list<UndoAction>::iterator s = apstate->crossfade_states.begin(); s != apstate->crossfade_states.end(); ++s) {
- *s;
+ (*s) ();
}
in_set_state = false;
UndoAction
AudioPlaylist::get_memento () const
{
- return sigc::bind (mem_fun (*(const_cast<AudioPlaylist*> (this)), &StateManager::use_state), _current_state_id);
+ return sigc::bind (mem_fun (*(const_cast<AudioPlaylist*> (this)), &StateManager::use_state), _current_state_id);
}
void