From cb0ae63fe2449de75aa91cd26e68c8d2112d7683 Mon Sep 17 00:00:00 2001 From: Térence Clastres Date: Sun, 12 Aug 2018 00:36:13 +0200 Subject: Fix track buttons not working when selecting the last stripable --- libs/surfaces/launch_control_xl/launch_control_xl.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.cc b/libs/surfaces/launch_control_xl/launch_control_xl.cc index da1a9d7c86..7d7ffff442 100644 --- a/libs/surfaces/launch_control_xl/launch_control_xl.cc +++ b/libs/surfaces/launch_control_xl/launch_control_xl.cc @@ -835,10 +835,6 @@ LaunchControlXL::switch_bank (uint32_t base) write(sr->state_msg( !(base) )); } - - - stripable_connections.drop_connections (); - /* work backwards so we can tell if we should actually switch banks */ boost::shared_ptr s[8]; @@ -853,12 +849,11 @@ LaunchControlXL::switch_bank (uint32_t base) if (!s[0]) { /* not even the first stripable exists, do nothing */ - for (int n = 0; n < 7; ++n) { - stripable[n].reset (); - } return; } + stripable_connections.drop_connections (); + for (int n = 0; n < 7; ++n) { stripable[n] = s[n]; } -- cgit v1.2.3