From aeedfc69c16f4aef13fc7cbd20ea52d012af7b80 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 25 Nov 2008 14:09:29 +0000 Subject: [PATCH] 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 --- gtk2_ardour/redirect_box.cc | 5 +++-- libs/ardour/send.cc | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/redirect_box.cc b/gtk2_ardour/redirect_box.cc index 25fa0191ad..b6c5694dcf 100644 --- a/gtk2_ardour/redirect_box.cc +++ b/gtk2_ardour/redirect_box.cc @@ -810,8 +810,9 @@ RedirectBox::copy_redirects () } for (vector >::iterator i = to_be_copied.begin(); i != to_be_copied.end(); ++i) { - // Do not copy inserts or sends - if (boost::dynamic_pointer_cast((*i)) != 0) { + // Do not copy inserts + if ((boost::dynamic_pointer_cast((*i)) != 0) || + (boost::dynamic_pointer_cast((*i)) != 0)) { copies.push_back (Redirect::clone (*i)); } } diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index 19883ba91e..3afb767dd8 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -74,6 +74,10 @@ Send::Send (const Send& other) } } + if (other.active()) { + set_active (true, this); + } + RedirectCreated (this); /* EMIT SIGNAL */ }