if (create(path)) {
throw failed_constructor ();
}
-
- load_model(true, true); // FIXME
}
/** Constructor used for existing internal-to-session files. */
if (open(_path)) {
throw failed_constructor ();
}
-
- load_model(true, true); // FIXME
}
SMFSource::~SMFSource ()
return;
}
- if (! _model) {
- _model = boost::shared_ptr<MidiModel>(new MidiModel(this));
+ if (!_model) {
+ _model = boost::shared_ptr<MidiModel> (new MidiModel (shared_from_this ()));
} else {
_model->clear();
}