summaryrefslogtreecommitdiffstats
path: root/src/effects/effectchainmanager.cpp
diff options
context:
space:
mode:
authorbe_ <be.0@gmx.com>2017-12-10 22:24:55 -0600
committerbe_ <be.0@gmx.com>2017-12-10 22:46:26 -0600
commit5453f5080105aee079083f4e99d8c84eaa874f91 (patch)
tree149585b7538f673073fb3fa9f40b89c34cda777d /src/effects/effectchainmanager.cpp
parenta0cf66bd6bf2cb87d483f0420c52fe0336943434 (diff)
decouple EffectChainSlot creation from loading EffectChain to engine
Diffstat (limited to 'src/effects/effectchainmanager.cpp')
-rw-r--r--src/effects/effectchainmanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/effects/effectchainmanager.cpp b/src/effects/effectchainmanager.cpp
index fe587bc02e..c4b303f5cb 100644
--- a/src/effects/effectchainmanager.cpp
+++ b/src/effects/effectchainmanager.cpp
@@ -207,8 +207,11 @@ void EffectChainManager::loadEffectChains() {
if (pChain) { // null = ejected chains.
EffectChainSlotPointer pChainSlot = getStandardEffectRack(0)->getEffectChainSlot(i);
if (pChainSlot) {
- pChainSlot->loadEffectChain(pChain);
+ pChainSlot->loadEffectChainToSlot(pChain);
pChainSlot->loadChainSlotFromXml(chainElement);
+ pChain->addToEngine(getStandardEffectRack(0)->getEngineEffectRack(), i);
+ pChain->updateEngineState();
+ pChainSlot->updateRoutingSwitches();
}
}
}