diff --git a/libs/ardour/ardour/internal_send.h b/libs/ardour/ardour/internal_send.h index ac184a69bf..12279b166e 100644 --- a/libs/ardour/ardour/internal_send.h +++ b/libs/ardour/ardour/internal_send.h @@ -56,6 +56,7 @@ class InternalSend : public Send sigc::connection connect_c; void send_to_going_away (); + void send_to_name_changed (); int connect_when_legal (); int set_our_state (XMLNode const &, int); }; diff --git a/libs/ardour/internal_send.cc b/libs/ardour/internal_send.cc index 314e684e7d..5ba9954811 100644 --- a/libs/ardour/internal_send.cc +++ b/libs/ardour/internal_send.cc @@ -44,6 +44,7 @@ InternalSend::InternalSend (Session& s, boost::shared_ptr mm, boost: set_name (sendto->name()); _send_to->GoingAway.connect (mem_fun (*this, &InternalSend::send_to_going_away)); + _send_to->NameChanged.connect (mem_fun (*this, &InternalSend::send_to_name_changed)); } InternalSend::InternalSend (Session& s, boost::shared_ptr mm, const XMLNode& node) @@ -265,3 +266,9 @@ InternalSend::visible () const return false; } + +void +InternalSend::send_to_name_changed () +{ + set_name (_send_to->name ()); +}