Move is_embedded calculation to a single place.
[ardour.git] / libs / ardour / internal_send.cc
index 314e684e7d6dc1b8c55e4fd296dea7148937a347..5ba9954811844369d504138bdda5c4a8f3cb7472 100644 (file)
@@ -44,6 +44,7 @@ InternalSend::InternalSend (Session& s, boost::shared_ptr<MuteMaster> 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<MuteMaster> mm, const XMLNode& node)
@@ -265,3 +266,9 @@ InternalSend::visible () const
 
        return false;
 }
+
+void
+InternalSend::send_to_name_changed ()
+{
+       set_name (_send_to->name ());
+}