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:
parent
47b8fa2169
commit
eb5ca30817
|
@ -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);
|
||||
};
|
||||
|
|
|
@ -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 ());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user