Fix track buttons not working when selecting the last stripable
This commit is contained in:
parent
a50ed25181
commit
cb0ae63fe2
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue