summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-02-24 22:53:30 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-02-24 22:54:25 +0100
commit2b9525c9918345feeae92c6b7df1ac2cb09242ba (patch)
treecf237469e5beaec0b6dbc7f1ca192dc2f1dcaef1 /libs
parent74548604be080f01ee50824cfe12b5b542cdecf5 (diff)
try to make sure faderport shows the same strip as the editor mixer strip
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/faderport/faderport.cc8
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