From 19a4f6a4373a721b66814ad7d75d5aa7d1191223 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 9 Feb 2022 02:30:10 +0100 Subject: [PATCH] Fix restoring Trigger state --- libs/ardour/triggerbox.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 08b0a96db1..b57b19fe3a 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -972,7 +972,7 @@ AudioTrigger::set_state (const XMLNode& node, int version) { timepos_t t; - if (!Trigger::set_state (node, version)) { + if (Trigger::set_state (node, version)) { return -1; } @@ -1973,7 +1973,7 @@ MIDITrigger::set_state (const XMLNode& node, int version) { timepos_t t; - if (!Trigger::set_state (node, version)) { + if (Trigger::set_state (node, version)) { return -1; } @@ -1991,7 +1991,7 @@ MIDITrigger::set_state (const XMLNode& node, int version) int c, p, b; if ((*i)->get_property (X_("channel"), c) && (*i)->get_property (X_("program"), p) && - (*i)->get_property (X_("program"), b)) { + (*i)->get_property (X_("bank"), b)) { _patch_change[c] = Evoral::PatchChange (0, c, p, b); } }