summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTérence Clastres <t.clastres@gmail.com>2018-08-12 00:36:13 +0200
committerPaul Davis <paul@linuxaudiosystems.com>2018-08-15 18:48:32 -0400
commitcb0ae63fe2449de75aa91cd26e68c8d2112d7683 (patch)
tree6ab127345c4640ecf1f07cc82eb79b57eb8a21f0 /libs
parenta50ed25181182083f9616ea1ba0797a1f4498fe0 (diff)
Fix track buttons not working when selecting the last stripable
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/launch_control_xl/launch_control_xl.cc9
1 files 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<Stripable> 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];
}