From: Jean-Baptiste Mardelle Date: Fri, 28 Dec 2012 12:02:03 +0000 (+0100) Subject: Fix recent regression: slowmotion clips cannot be moved / copied on project opening X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=eb74feb585496fc8e7349a348a6d1222a6d1792a;p=kdenlive Fix recent regression: slowmotion clips cannot be moved / copied on project opening --- diff --git a/src/clipitem.cpp b/src/clipitem.cpp index 51ae67a9..46e2e21b 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -1547,7 +1547,6 @@ EffectsParameterList ClipItem::addEffect(QDomElement effect, bool /*animate*/) else if (fadein.attribute("name") == "in") fade -= fadein.attribute("value").toInt(); }*/ } else if (effectId == "fade_from_black") { - kDebug()<<"// FOUND FTB:"<getFileProperties(xml, clip->getId(), m_listView->iconSize().height(), replace); } + else if (item->numReferences() > 0) { + // In some cases, like slowmotion clips, the producer is not loaded automatically be MLT + m_render->getFileProperties(xml, clip->getId(), m_listView->iconSize().height(), replace); + } } else if (clip->isPlaceHolder()) { item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDropEnabled);