From fea7621b179f8efa821c175ecc44f9dce272ebee Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 4 Nov 2022 17:51:27 +0100 Subject: [PATCH] Fix state version for copy-construction (2/2) see previous commit for details --- gtk2_ardour/processor_box.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index c3694e73d4..5f0a105538 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -2169,7 +2169,7 @@ ProcessorBox::object_drop (DnDVBox* source, ProcessorEntry* posi /* Controllable and automation IDs should not be copied */ PBD::Stateful::ForceIDRegeneration force_ids; - proc->set_state (state, Stateful::loading_state_version); + proc->set_state (state, Stateful::current_state_version); /* but retain the processor's ID (LV2 state save) */ boost::dynamic_pointer_cast(proc)->update_id (id); return; @@ -3669,7 +3669,7 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr _route, boost::shared_ptr(), Delivery::Aux); PBD::Stateful::ForceIDRegeneration force_ids; - if (s->set_state (n, Stateful::loading_state_version)) { + if (s->set_state (n, Stateful::current_state_version)) { delete s; return; } @@ -3692,7 +3692,7 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr IOProcessor::prepare_for_reset (n, s->name()); - if (s->set_state (n, Stateful::loading_state_version)) { + if (s->set_state (n, Stateful::current_state_version)) { delete s; return; } @@ -3706,7 +3706,7 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr IOProcessor::prepare_for_reset (n, r->name()); - if (r->set_state (n, Stateful::loading_state_version)) { + if (r->set_state (n, Stateful::current_state_version)) { delete r; return; } @@ -3720,7 +3720,7 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, boost::shared_ptr IOProcessor::prepare_for_reset (n, pi->name()); - if (pi->set_state (n, Stateful::loading_state_version)) { + if (pi->set_state (n, Stateful::current_state_version)) { return; }