Fixes an inconsistent behavior of the tension knob (#2333)

Until now the tension knob was only disabled for discrete and linear
mode if the cubic hermite mode was selected at least once. This behavior
is fixed with this commit.
This commit is contained in:
Michael Gregorius
2015-09-09 20:03:57 +02:00
parent 3f31b5ce25
commit 46bac80470

View File

@@ -2265,12 +2265,15 @@ void AutomationEditorWindow::setCurrentPattern(AutomationPattern* pattern)
{
case AutomationPattern::DiscreteProgression:
m_discreteAction->setChecked(true);
m_tensionKnob->setEnabled(false);
break;
case AutomationPattern::LinearProgression:
m_linearAction->setChecked(true);
m_tensionKnob->setEnabled(false);
break;
case AutomationPattern::CubicHermiteProgression:
m_cubicHermiteAction->setChecked(true);
m_tensionKnob->setEnabled(true);
break;
}