diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-02-24 22:53:30 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-02-24 22:54:25 +0100 |
commit | 2b9525c9918345feeae92c6b7df1ac2cb09242ba (patch) | |
tree | cf237469e5beaec0b6dbc7f1ca192dc2f1dcaef1 | |
parent | 74548604be080f01ee50824cfe12b5b542cdecf5 (diff) |
try to make sure faderport shows the same strip as the editor mixer strip
-rw-r--r-- | libs/surfaces/faderport/faderport.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/surfaces/faderport/faderport.cc b/libs/surfaces/faderport/faderport.cc index 3d5baa1348..5da4ecdd3c 100644 --- a/libs/surfaces/faderport/faderport.cc +++ b/libs/surfaces/faderport/faderport.cc @@ -1115,13 +1115,7 @@ FaderPort::Button::get_state () const void FaderPort::gui_track_selection_changed (StripableNotificationListPtr stripables) { - boost::shared_ptr<Stripable> r; - - if (!stripables->empty()) { - r = stripables->front().lock(); - } - - set_current_stripable (r); + set_current_stripable (ControlProtocol::first_selected_stripable()); } void |