Fix up route group label updates.
git-svn-id: svn://localhost/ardour2/branches/3.0@7367 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
46d2e5e2b4
commit
e4c6b5f01a
@ -33,6 +33,7 @@ class RouteGroupMember
|
||||
|
||||
RouteGroup* route_group () const { return _route_group; }
|
||||
|
||||
/** Emitted when this member joins or leaves a route group */
|
||||
PBD::Signal0<void> route_group_changed;
|
||||
|
||||
protected:
|
||||
|
@ -279,6 +279,7 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi
|
||||
PBD::Signal0<void> Located;
|
||||
|
||||
PBD::Signal1<void,RouteList&> RouteAdded;
|
||||
/** Emitted when anything about any of our route groups changes */
|
||||
PBD::Signal0<void> RouteGroupChanged;
|
||||
|
||||
void queue_event (SessionEvent*);
|
||||
|
@ -1902,7 +1902,6 @@ Session::add_routes (RouteList& new_routes, bool save)
|
||||
r->mute_changed.connect_same_thread (*this, boost::bind (&Session::route_mute_changed, this, _1));
|
||||
r->output()->changed.connect_same_thread (*this, boost::bind (&Session::set_worst_io_latencies_x, this, _1, _2));
|
||||
r->processors_changed.connect_same_thread (*this, boost::bind (&Session::route_processors_changed, this, _1));
|
||||
r->route_group_changed.connect_same_thread (*this, boost::bind (&Session::route_group_changed, this));
|
||||
|
||||
if (r->is_master()) {
|
||||
_master_out = r;
|
||||
@ -3834,6 +3833,7 @@ Session::solo_control_mode_changed ()
|
||||
}
|
||||
}
|
||||
|
||||
/** Called when anything about any of our route groups changes (membership, state etc.) */
|
||||
void
|
||||
Session::route_group_changed ()
|
||||
{
|
||||
|
@ -2251,6 +2251,10 @@ Session::add_route_group (RouteGroup* g)
|
||||
{
|
||||
_route_groups.push_back (g);
|
||||
route_group_added (g); /* EMIT SIGNAL */
|
||||
|
||||
g->MembershipChanged.connect_same_thread (*this, boost::bind (&Session::route_group_changed, this));
|
||||
g->PropertyChanged.connect_same_thread (*this, boost::bind (&Session::route_group_changed, this));
|
||||
|
||||
set_dirty ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user