13
0

Fix patch-change bank update loop

Without an object, the Unwinder has no scope and the "ignore" variable
is never set.

In this case: When the patch-bank was changed externally this
lead to a duplicate recursive call to "refill_banks".
This commit is contained in:
Robin Gareus 2019-07-17 16:36:01 +02:00
parent 0e60060c62
commit e68d441aa0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -229,7 +229,7 @@ PatchChangeWidget::refill_banks ()
const int b = bank (_channel);
{
PBD::Unwinder<bool> (_ignore_spin_btn_signals, true);
PBD::Unwinder<bool> uw (_ignore_spin_btn_signals, true);
_bank_msb_spin.set_value (b >> 7);
_bank_lsb_spin.set_value (b & 127);
}