From 0def2d2d82936b5d4a7e1aa30807bc00f5972b23 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 20 Oct 2009 02:26:25 +0000 Subject: [PATCH] Tidy. git-svn-id: svn://localhost/ardour2/branches/3.0@5821 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index a0254fab6e..8034e2c35f 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2990,19 +2990,20 @@ Session::restore_history (string snapshot_name) PBD::ID id(n->property("midi-source")->value()); boost::shared_ptr midi_source = boost::dynamic_pointer_cast(source_by_id(id)); - if(midi_source) { + if (midi_source) { ut->add_command(new MidiModel::DeltaCommand(midi_source->model(), *n)); } else { - error << "FIXME: Failed to downcast MidiSource for DeltaCommand" << endmsg; + error << _("Failed to downcast MidiSource for DeltaCommand") << endmsg; } + } else if (n->name() == "DiffCommand") { PBD::ID id(n->property("midi-source")->value()); boost::shared_ptr midi_source = boost::dynamic_pointer_cast(source_by_id(id)); - if(midi_source) { + if (midi_source) { ut->add_command(new MidiModel::DiffCommand(midi_source->model(), *n)); } else { - error << "FIXME: Failed to downcast MidiSource for DeltaCommand" << endmsg; + error << _("Failed to downcast MidiSource for DeltaCommand") << endmsg; } } else {