prevent crash when saving learned MIDI binding that is now missing its controllable

git-svn-id: svn://localhost/ardour2/branches/3.0@13678 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-19 01:19:48 +00:00
parent aea645e908
commit 844ce9f359

View file

@ -496,7 +496,7 @@ GenericMidiControlProtocol::get_state ()
file.
*/
if ((*i)->learned()) {
if ((*i)->get_controllable() && (*i)->learned()) {
children->add_child_nocopy ((*i)->get_state());
}
}