Fix track buttons not working when selecting the last stripable

This commit is contained in:
Térence Clastres 2018-08-12 00:36:13 +02:00 committed by Paul Davis
parent a50ed25181
commit cb0ae63fe2
1 changed files with 2 additions and 7 deletions

View File

@ -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];
}