Fix crash on drag-n-drop of port inserts (#3809).

git-svn-id: svn://localhost/ardour2/branches/3.0@9003 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-03-01 15:24:44 +00:00
parent 3110429deb
commit c89603465b

View file

@ -1636,6 +1636,14 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr
p.reset (r);
} else if (type->value() == "port") {
XMLNode n (**niter);
p.reset (new PortInsert (*_session, _route->pannable (), _route->mute_master ()));
if (p->set_state (n, Stateful::loading_state_version)) {
return;
}
} else {
/* XXX its a bit limiting to assume that everything else
is a plugin.