13
0

Rename internal sends when their send-to bus changes.

git-svn-id: svn://localhost/ardour2/branches/3.0@6181 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-11-26 00:14:27 +00:00
parent 47b8fa2169
commit eb5ca30817
2 changed files with 8 additions and 0 deletions

View File

@ -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);
};

View 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 ());
}