]> git.sesse.net Git - kdenlive/commitdiff
Fix keyframe line not appearing in timeline until we modify a keyframe
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 1 Feb 2013 12:37:44 +0000 (13:37 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 1 Feb 2013 12:37:44 +0000 (13:37 +0100)
src/clipitem.cpp
src/effectstack/parametercontainer.cpp

index aa86d6f284b2a0f23976a84f0ed673cf26a3e940..8623adc36e977d7fb3aeb38ec5ebbdeab06bc4a5 100644 (file)
@@ -467,7 +467,7 @@ void ClipItem::setSelectedEffect(const int ix)
         QDomNodeList params = effect.elementsByTagName("parameter");
         for (int i = 0; i < params.count(); i++) {
             QDomElement e = params.item(i).toElement();
-            if (!e.isNull() && (e.attribute("type") == "keyframe" || e.attribute("type") == "simplekeyframe") && e.attribute("intimeline") == "1") {
+            if (!e.isNull() && (e.attribute("type") == "keyframe" || e.attribute("type") == "simplekeyframe") && (!e.hasAttribute("intimeline") || e.attribute("intimeline") == "1")) {
                 m_keyframes.clear();
                 m_limitedKeyFrames = e.attribute("type") == "keyframe";
                 m_visibleParam = i;
index 5585a419fb50e19852241b4c38d5f785fdacf55c..e86b38b1e282baa66f1e1af75a70011f41ffb4b6 100644 (file)
@@ -734,7 +734,7 @@ void ParameterContainer::slotCollectAllParameters()
                 pa.setAttribute("intimeline", "1");
            }
             else if (pa.hasAttribute("intimeline"))
-                pa.removeAttribute("intimeline");
+                pa.setAttribute("intimeline", "0");
         } else if (type == "url") {
             KUrlRequester *req = ((Urlval*)m_valueItems.value(paramName))->urlwidget;
             setValue = req->url().path();