Fix a couple of crashes on MIDI import.

git-svn-id: svn://localhost/ardour2/branches/3.0@7308 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-06-28 01:12:21 +00:00
parent bc32e5b5eb
commit c8e07653da
2 changed files with 8 additions and 1 deletions

View File

@ -272,6 +272,10 @@ MidiRegion::switch_source(boost::shared_ptr<Source> src)
void
MidiRegion::model_changed ()
{
if (!model()) {
return;
}
/* build list of filtered Parameters, being those whose automation state is not `Play' */
_filtered_parameters.clear ();

View File

@ -388,7 +388,10 @@ SMFSource::mark_streaming_write_completed ()
return;
}
_model->set_edited(false);
if (_model) {
_model->set_edited(false);
}
Evoral::SMF::end_write ();
}