diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-04-09 15:33:01 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-04-09 15:33:01 +0000 |
commit | 1a0044b35d2cca7e7316d6afbb8e4955b6d7a627 (patch) | |
tree | 43fe8bf5cfc170f6aa4a5ec2f821a909965f572e /libs/ardour/smf_source.cc | |
parent | f39606f985223d211d218799c9e0de1e7c0e7f0c (diff) |
* 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
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r-- | libs/ardour/smf_source.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 18d7e87d88..bee3fd96d4 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -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() |