summaryrefslogtreecommitdiff
path: root/gtk2_ardour/patch_change_widget.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-07-17 16:36:01 +0200
committerRobin Gareus <robin@gareus.org>2019-07-17 17:30:50 +0200
commite68d441aa0aa550554b3a6ae7c3eeb33c0cc993f (patch)
tree5917f5a9df3312494c219c2c72600291d1ba9fd1 /gtk2_ardour/patch_change_widget.cc
parent0e60060c62d42adae2f8cddccae97173561b9a71 (diff)
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".
Diffstat (limited to 'gtk2_ardour/patch_change_widget.cc')
-rw-r--r--gtk2_ardour/patch_change_widget.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/patch_change_widget.cc b/gtk2_ardour/patch_change_widget.cc
index f9c88d8068..de20c30bc5 100644
--- a/gtk2_ardour/patch_change_widget.cc
+++ b/gtk2_ardour/patch_change_widget.cc
@@ -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);
}