Skip to content

Commit

Permalink
fixup! DlgPrefEQ: remove '---' hack from QuickEffect selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Sep 4, 2022
1 parent 56c895a commit 0d25297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preferences/dialog/dlgprefeq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void DlgPrefEQ::slotQuickEffectChangedOnDeck(int effectIndex) {
EffectChainPointer pChain = m_pEffectsManager->getEffectChain(unitGroup);
QList<EffectChainPresetPointer> presetList =
m_pChainPresetManager->getQuickEffectPresetsSorted();
if (pChain && effectIndex > -1 && effectIndex <= presetList.size()) {
if (pChain && effectIndex >= 0 && effectIndex <= presetList.size()) {
pChain->loadChainPreset(presetList[effectIndex]);
}
}
Expand Down

0 comments on commit 0d25297

Please sign in to comment.