diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-06 13:36:55 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-06 13:39:10 -0400 |
commit | 2047ee527c688ed2c2bedea79a7e01088da58d72 (patch) | |
tree | a9326585d3bfeb12c87e2879b7280e5368b18013 /libs/surfaces/osc | |
parent | eed3ea5047ae50484542cacece0df1fd9db2e4d0 (diff) |
restore/extend/simplify ControlProtocol API to allow tracking of selection
Diffstat (limited to 'libs/surfaces/osc')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index f2fd8af867..b199b64f84 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -2600,9 +2600,8 @@ OSC::route_plugin_parameter_print (int ssid, int piid, int par, lo_message msg) void OSC::gui_selection_changed () { - boost::shared_ptr<Stripable> strip; + boost::shared_ptr<Stripable> strip = ControlProtocol::first_selected_stripable(); - strip = boost::dynamic_pointer_cast<Stripable>(session->get_editor_mixer().lock()); if (strip) { _select = strip; for (uint32_t it = 0; it < _surface.size(); ++it) { |