]> git.sesse.net Git - kdenlive/commitdiff
Fix recent regression: clip properties (duration, etc) not loaded when adding a clip
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 15 Sep 2009 15:59:09 +0000 (15:59 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 15 Sep 2009 15:59:09 +0000 (15:59 +0000)
svn path=/trunk/kdenlive/; revision=3891

src/projectlist.cpp

index 73c30fd5f1b19a3581322604dc7b0e0736d7ffb6..38fdad2c849f59efc1b99695558265039c6cc816 100644 (file)
@@ -502,7 +502,10 @@ void ProjectList::slotAddClip(DocClipBase *clip, bool getProperties)
     if (getProperties) {
         m_listView->blockSignals(true);
         m_refreshed = false;
-        m_infoQueue.insert(clip->getId(), clip->toXML());
+        // remove file_hash so that we load all properties for the clip
+        QDomElement e = clip->toXML().cloneNode().toElement();
+        e.removeAttribute("file_hash");
+        m_infoQueue.insert(clip->getId(), e);
         //m_render->getFileProperties(clip->toXML(), clip->getId(), true);
     }
     const QString parent = clip->getProperty("groupid");