patch from lincoln to make mute controllable emit its Changed signal; note to self...
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 17 Dec 2010 04:14:24 +0000 (04:14 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 17 Dec 2010 04:14:24 +0000 (04:14 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8291 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/route.cc

index 51ea1960cb96c1b386143ac974427f540cfb250c..6f9780d4b955c7781798e2bd56d579e6d22efa6c 100644 (file)
@@ -108,7 +108,7 @@ Route::init ()
        /* add standard controls */
 
        _solo_control->set_flags (Controllable::Flag (_solo_control->flags() | Controllable::Toggle));
-       _mute_control->set_flags (Controllable::Flag (_solo_control->flags() | Controllable::Toggle));
+       _mute_control->set_flags (Controllable::Flag (_mute_control->flags() | Controllable::Toggle));
 
        add_control (_solo_control);
        add_control (_mute_control);
@@ -784,6 +784,7 @@ Route::set_mute_points (MuteMaster::MutePoint mp)
         
         if (_mute_master->muted_by_self()) {
                 mute_changed (this); /* EMIT SIGNAL */
+               _mute_control->Changed (); /* EMIT SIGNAL */
         }
 }
 
@@ -798,6 +799,7 @@ Route::set_mute (bool yn, void *src)
        if (muted() != yn) {
                 _mute_master->set_muted_by_self (yn);
                mute_changed (src); /* EMIT SIGNAL */
+               _mute_control->Changed (); /* EMIT SIGNAL */
        }
 }