From 60158fd2b47107bfc2663ad06c5a30eb96780177 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 5 Apr 2010 17:17:48 +0000 Subject: [PATCH] Emit signal when a group's active state is changed. Fix restoration of state from XML. git-svn-id: svn://localhost/ardour2/branches/3.0@6859 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/route_group.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc index f0a9125770..0b0a072509 100644 --- a/libs/ardour/route_group.cc +++ b/libs/ardour/route_group.cc @@ -235,6 +235,8 @@ RouteGroup::set_state (const XMLNode& node, int version) return set_state_2X (node, version); } + set_properties (node); + const XMLProperty *prop; if ((prop = node.property ("routes")) != 0) { @@ -337,13 +339,15 @@ RouteGroup::set_active (bool yn, void *src) if (is_active() == yn) { return; } + _active = yn; + send_change (PropertyChange (Properties::active)); + _session.set_dirty (); } void RouteGroup::set_relative (bool yn, void *src) - { if (is_relative() == yn) { return;