From 46bac8047053cca16e97f89904122b778ceef235 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Wed, 9 Sep 2015 20:03:57 +0200 Subject: [PATCH] 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. --- src/gui/editors/AutomationEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/editors/AutomationEditor.cpp b/src/gui/editors/AutomationEditor.cpp index eb066a65e..3e21a9c13 100644 --- a/src/gui/editors/AutomationEditor.cpp +++ b/src/gui/editors/AutomationEditor.cpp @@ -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; }