* implemented persistent undo for MidiModel::DeltaCommand. Deserializing works, but weirdly has no effect when undo/redo is applied in the editor

git-svn-id: svn://localhost/ardour2/branches/3.0@3240 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2008-04-09 15:33:01 +00:00
parent f39606f985
commit 1a0044b35d
7 changed files with 149 additions and 11 deletions

View file

@ -872,7 +872,7 @@ SMFSource::load_model(bool lock, bool force_reload)
}
if (! _model) {
_model = boost::shared_ptr<MidiModel>(new MidiModel(_session));
_model = boost::shared_ptr<MidiModel>(new MidiModel(*this));
cerr << _name << " loaded new model " << _model.get() << endl;
} else {
cerr << _name << " reloading model " << _model.get()