Emit signal when a group's active state is changed. Fix restoration of state from...
authorCarl Hetherington <carl@carlh.net>
Mon, 5 Apr 2010 17:17:48 +0000 (17:17 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 5 Apr 2010 17:17:48 +0000 (17:17 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6859 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/route_group.cc

index f0a91257705a371100e3a5ecb2efe5e870db307c..0b0a07250905ac11fe6aa0dc84830335e66d6c96 100644 (file)
@@ -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;