Fix send copying by paste and drag n drop.

git-svn-id: svn://localhost/ardour2/branches/3.0@4550 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-02-14 17:28:01 +00:00
parent e9fde9baa7
commit 50d7d19614
4 changed files with 46 additions and 20 deletions

View file

@ -964,8 +964,16 @@ ProcessorBox::paste_processor_state (const XMLNode& node)
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
cerr << "try using " << (*niter)->name() << endl;
XMLProperty const * type = (*niter)->property ("type");
assert (type);
try {
copies.push_back (boost::shared_ptr<Processor> (new PluginInsert (_session, **niter)));
if (type->value() == "send") {
XMLNode n (**niter);
Send::make_unique (n, _session);
copies.push_back (boost::shared_ptr<Processor> (new Send (_session, n)));
} else {
copies.push_back (boost::shared_ptr<Processor> (new PluginInsert (_session, **niter)));
}
}
catch (...) {
cerr << "plugin insert constructor failed\n";