mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 01:47:43 +01:00
call IO::prepare_for_reset() on BOTH IO nodes of a PortInsert's XML state, not just one of them.
Allows drag-n-drop of port inserts to work
This commit is contained in:
parent
ff03eeab04
commit
9336bddee2
1 changed files with 6 additions and 3 deletions
|
|
@ -287,9 +287,12 @@ IOProcessor::prepare_for_reset (XMLNode &state, const std::string& name)
|
|||
state.set_property ("ignore-bitslot", true);
|
||||
state.set_property ("ignore-name", true);
|
||||
|
||||
XMLNode* io_node = state.child (IO::state_node_name.c_str());
|
||||
XMLNodeList nlist = state.children();
|
||||
XMLNodeIterator niter;
|
||||
|
||||
if (io_node) {
|
||||
IO::prepare_for_reset (*io_node, name);
|
||||
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
|
||||
if ((*niter)->name() == IO::state_node_name.c_str()) {
|
||||
IO::prepare_for_reset (**niter, name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue