copy sends & plugins, not just plugins, when doing a mixer strip copy; copied sends use the other send's active status, so that copies of active sends are also active

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4256 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2008-11-25 14:09:29 +00:00
parent 33b4d64094
commit aeedfc69c1
2 changed files with 7 additions and 2 deletions

View file

@ -810,8 +810,9 @@ RedirectBox::copy_redirects ()
}
for (vector<boost::shared_ptr<Redirect> >::iterator i = to_be_copied.begin(); i != to_be_copied.end(); ++i) {
// Do not copy inserts or sends
if (boost::dynamic_pointer_cast<PluginInsert>((*i)) != 0) {
// Do not copy inserts
if ((boost::dynamic_pointer_cast<PluginInsert>((*i)) != 0) ||
(boost::dynamic_pointer_cast<Send>((*i)) != 0)) {
copies.push_back (Redirect::clone (*i));
}
}

View file

@ -74,6 +74,10 @@ Send::Send (const Send& other)
}
}
if (other.active()) {
set_active (true, this);
}
RedirectCreated (this); /* EMIT SIGNAL */
}