From: Paul Davis Date: Wed, 1 Feb 2017 10:57:37 +0000 (+0100) Subject: make the leftmost mixer stripable API at least work as advertised X-Git-Tag: 5.6~100 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=e75c713e5e416fa17db2eb2ba337a334052d1b72;p=ardour.git make the leftmost mixer stripable API at least work as advertised --- diff --git a/libs/surfaces/control_protocol/control_protocol.cc b/libs/surfaces/control_protocol/control_protocol.cc index 675294bbd9..311c2d1081 100644 --- a/libs/surfaces/control_protocol/control_protocol.cc +++ b/libs/surfaces/control_protocol/control_protocol.cc @@ -59,6 +59,7 @@ PBD::Signal1 ControlProtocol::StripableSelect Glib::Threads::Mutex ControlProtocol::special_stripable_mutex; boost::weak_ptr ControlProtocol::_first_selected_stripable; +boost::weak_ptr ControlProtocol::_leftmost_mixer_stripable; StripableNotificationList ControlProtocol::_last_selected; bool ControlProtocol::selection_connected = false; PBD::ScopedConnection ControlProtocol::selection_connection; @@ -354,14 +355,14 @@ boost::shared_ptr ControlProtocol::leftmost_mixer_stripable () { Glib::Threads::Mutex::Lock lm (special_stripable_mutex); - return _first_selected_stripable.lock(); + return _leftmost_mixer_stripable.lock(); } void ControlProtocol::set_leftmost_mixer_stripable (boost::shared_ptr s) { Glib::Threads::Mutex::Lock lm (special_stripable_mutex); - _first_selected_stripable = s; + _leftmost_mixer_stripable = s; } void