Skip to content

Commit

Permalink
add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Jan 7, 2017
1 parent e6924ee commit 6be7800
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/effects/effectslot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ void EffectSlot::loadEffect(EffectPointer pEffect) {
m_pControlNumParameters->forceSet(pEffect->numKnobParameters());
m_pControlNumButtonParameters->forceSet(pEffect->numButtonParameters());

// The enabled status persists in the EffectSlot when loading a new
// EffectPointer to the EffectSlot. Effects and EngineEffects default to
// disabled, so if this EffectSlot was enabled, enable the Effect and EngineEffect.
pEffect->setEnabled(m_pControlEnabled->toBool());

connect(pEffect.data(), SIGNAL(enabledChanged(bool)),
Expand Down

0 comments on commit 6be7800

Please sign in to comment.