}
m_startPos = infoXml.attribute("position").toInt();
m_zoom = infoXml.attribute("zoom", "7").toInt();
-
-
-
-
m_zoneEnd = infoXml.attribute("zoneout", "100").toInt();
setProfilePath(profilePath);
westley.removeChild(tracksinfo);
}
- QDomElement orig;
QDomNodeList producers = m_document.elementsByTagName("producer");
QDomNodeList infoproducers = m_document.elementsByTagName("kdenlive_producer");
const int max = producers.count();
if (!e.isNull() && prodId != "black" && !prodId.startsWith("slowmotion") && !m_abortLoading) {
e.setTagName("producer");
// Get MLT's original producer properties
-
+ QDomElement orig;
for (int j = 0; j < max; j++) {
QDomElement o = producers.item(j).cloneNode().toElement();
QString origId = o.attribute("id").section('_', 0, 0);
const QString producerId = clipId.section('_', 0, 0);
DocClipBase *clip = m_clipManager->getClipById(producerId);
if (clip == NULL) {
- /*kDebug()<<"// CLIP "<<clipId<<" NOT OFUND in LIST, CREATING";
- QDomDocument doc;
- doc.appendChild(doc.importNode(elem, true));
- kDebug() << "IMPORTED CLIP: \n" << doc.toString()<<"\n";*/
elem.setAttribute("id", producerId);
QString path = elem.attribute("resource");
QString extension;
extension = KUrl(path).fileName();
path = KUrl(path).directory();
}
- if (!QFile::exists(path) && elem.attribute("type").toInt() == TEXT) {
+ if (elem.attribute("type").toInt() == TEXT && !QFile::exists(path)) {
kDebug() << "// TITLE: " << elem.attribute("titlename") << " Preview file: " << elem.attribute("resource") << " DOES NOT EXIST";
QString titlename = elem.attribute("titlename");
QString titleresource;
clip = new DocClipBase(m_clipManager, elem, producerId);
m_clipManager->addClip(clip);
}
+
if (createClipItem) {
emit addProjectClip(clip);
qApp->processEvents();
m = m.nextSibling();
}
if (!meta.isEmpty()) {
- clip = m_clipManager->getClipById(clipId);
+ if (clip == NULL) clip = m_clipManager->getClipById(clipId);
if (clip) clip->setMetadata(meta);
}
}