From c43046320ba6657decbc1dda7f97b9a6402028a6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 17 Oct 2016 15:58:30 -0400 Subject: reset peak meters used in push2 when stripable goes away --- libs/surfaces/push2/mix.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/surfaces') diff --git a/libs/surfaces/push2/mix.cc b/libs/surfaces/push2/mix.cc index 34b979ce46..7422c351ba 100644 --- a/libs/surfaces/push2/mix.cc +++ b/libs/surfaces/push2/mix.cc @@ -547,6 +547,11 @@ MixLayout::switch_bank (uint32_t base) if (!s[0]) { /* not even the first stripable exists, do nothing */ + for (int n = 0; n < 8; ++n) { + stripable[n].reset (); + gain_meter[n]->knob->set_controllable (boost::shared_ptr()); + gain_meter[n]->meter->set_meter (0); + } return; } @@ -563,6 +568,8 @@ MixLayout::switch_bank (uint32_t base) if (!stripable[n]) { lower_text[n]->hide (); hide_selection (n); + gain_meter[n]->knob->set_controllable (boost::shared_ptr()); + gain_meter[n]->meter->set_meter (0); } else { lower_text[n]->show (); -- cgit v1.2.3