X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlist.cpp;h=35f02b11748f82df7696f7db2664a259ec127027;hb=0afc8ed1eb6eecdb6623acde765b5e24b01e2c8b;hp=12b19abe0ac0f44a22631650fd74f6b3ee5aa17f;hpb=4c0b2ea8678ba5f62b1091f6146c2fc207dfff31;p=kdenlive diff --git a/src/projectlist.cpp b/src/projectlist.cpp index 12b19abe..35f02b11 100644 --- a/src/projectlist.cpp +++ b/src/projectlist.cpp @@ -715,10 +715,11 @@ void ProjectList::slotReloadClip(const QString &id) QDomElement e = item->toXml(); // Make sure we get the correct producer length if it was adjusted in timeline if (t == COLOR || t == IMAGE || t == SLIDESHOW || t == TEXT) { - int length = QString(clip->producerProperty("length")).toInt(); - if (length > 0 && !e.hasAttribute("length")) { - e.setAttribute("length", length); - } + int length = QString(clip->producerProperty("length")).toInt(); + if (length > 0 && !e.hasAttribute("length")) { + e.setAttribute("length", length); + } + e.setAttribute("duration", clip->getProperty("duration")); } resetThumbsProducer(clip); m_render->getFileProperties(e, item->clipId(), m_listView->iconSize().height(), true);