From: Paul Davis Date: Tue, 22 May 2012 21:38:03 +0000 (+0000) Subject: MCP: pay attention to listen changes as well as solo changes, and reflect listen... X-Git-Tag: 3.0~1409 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=ccfeb90bdc5e0502f43cbb89d701dfba91c64e74;p=ardour.git MCP: pay attention to listen changes as well as solo changes, and reflect listen state with solo button, just like solo git-svn-id: svn://localhost/ardour2/branches/3.0@12385 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 132d93ed75..d886f5a658 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -163,7 +163,9 @@ Strip::set_route (boost::shared_ptr r, bool /*with_messages*/) set_vpot_parameter (PanAzimuthAutomation); - _route->solo_control()->Changed.connect(route_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_solo_changed, this), ui_context()); + _route->solo_changed.connect (route_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_solo_changed, this), ui_context()); + _route->listen_changed.connect (route_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_solo_changed, this), ui_context()); + _route->mute_control()->Changed.connect(route_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_mute_changed, this), ui_context()); boost::shared_ptr pannable = _route->pannable(); @@ -239,7 +241,7 @@ void Strip::notify_solo_changed () { if (_route && _solo) { - _surface->write (_solo->set_state (_route->soloed() ? on : off)); + _surface->write (_solo->set_state ((_route->soloed() || _route->listening_via_monitor()) ? on : off)); } }