diff options
Diffstat (limited to 'libs')
-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 |