diff options
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index b67de14d07..93245d6d01 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -3186,14 +3186,14 @@ Session::restore_history (string snapshot_name) ut->add_command(c); } - } else if (n->name() == "DiffCommand") { - PBD::ID id(n->property("midi-source")->value()); + } else if (n->name() == "NoteDiffCommand") { + PBD::ID id (n->property("midi-source")->value()); boost::shared_ptr<MidiSource> midi_source = boost::dynamic_pointer_cast<MidiSource, Source>(source_by_id(id)); if (midi_source) { - ut->add_command(new MidiModel::DiffCommand(midi_source->model(), *n)); + ut->add_command (new MidiModel::NoteDiffCommand(midi_source->model(), *n)); } else { - error << _("Failed to downcast MidiSource for DiffCommand") << endmsg; + error << _("Failed to downcast MidiSource for NoteDiffCommand") << endmsg; } } else if (n->name() == "StatefulDiffCommand") { |