]> git.sesse.net Git - kdenlive/commitdiff
Fix effect parameters disabled at inappropriate times (when switching between a disab...
authorTill Theato <root@ttill.de>
Sat, 11 Dec 2010 22:12:51 +0000 (22:12 +0000)
committerTill Theato <root@ttill.de>
Sat, 11 Dec 2010 22:12:51 +0000 (22:12 +0000)
svn path=/trunk/kdenlive/; revision=5161

src/effectstackedit.cpp

index 099de6fa2669ab22553310819c604b4b4ec0ca6e..3d24f472e18bd1ce62b64af521a992fd90f157b3 100644 (file)
@@ -160,6 +160,7 @@ void EffectStackEdit::updateProjectFormat(MltVideoProfile profile, Timecode t)
 void EffectStackEdit::updateParameter(const QString &name, const QString &value)
 {
     m_params.setAttribute(name, value);
+
     if (name == "disable") {
         // if effect is disabled, disable parameters widget
         setEnabled(value.toInt() == 0);
@@ -198,7 +199,9 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in
     QDomElement e = m_params.toElement();
     const int minFrame = e.attribute("start").toInt();
     const int maxFrame = e.attribute("end").toInt();
+
     bool disabled = d.attribute("disable") == "1";
+    setEnabled(!disabled);
 
 
     for (int i = 0; i < namenode.count() ; i++) {