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:
parent
bc32e5b5eb
commit
c8e07653da
|
@ -272,6 +272,10 @@ MidiRegion::switch_source(boost::shared_ptr<Source> src)
|
||||||
void
|
void
|
||||||
MidiRegion::model_changed ()
|
MidiRegion::model_changed ()
|
||||||
{
|
{
|
||||||
|
if (!model()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* build list of filtered Parameters, being those whose automation state is not `Play' */
|
/* build list of filtered Parameters, being those whose automation state is not `Play' */
|
||||||
|
|
||||||
_filtered_parameters.clear ();
|
_filtered_parameters.clear ();
|
||||||
|
|
|
@ -388,7 +388,10 @@ SMFSource::mark_streaming_write_completed ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_model->set_edited(false);
|
if (_model) {
|
||||||
|
_model->set_edited(false);
|
||||||
|
}
|
||||||
|
|
||||||
Evoral::SMF::end_write ();
|
Evoral::SMF::end_write ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user