]> git.sesse.net Git - kdenlive/blobdiff - src/archivewidget.cpp
Inform user when no render profile is available (usually because frame rate not matching)
[kdenlive] / src / archivewidget.cpp
index fb3369036ca02390457f379c9527b74cfd111311..db2b9e8db2c6d033c1db1f17a42db70beb343ad0 100644 (file)
@@ -140,9 +140,7 @@ ArchiveWidget::ArchiveWidget(QString projectName, QDomDocument doc, QList <DocCl
     generateItems(others, otherUrls);
     generateItems(proxies, proxyUrls);
     
-#if QT_VERSION >= 0x040500
     allFonts.removeDuplicates();
-#endif
 
     //TODO: fonts
 
@@ -544,7 +542,7 @@ bool ArchiveWidget::processProjectFile()
     if (isArchive) basePath = "$CURRENTPATH";
     else basePath = archive_url->url().path(KUrl::RemoveTrailingSlash);
     mlt.setAttribute("root", basePath);
-    QDomElement project = mlt.elementsByTagName("kdenlivedoc").at(0).toElement();
+    QDomElement project = mlt.firstChildElement("kdenlivedoc");
     project.setAttribute("projectfolder", basePath);
 
     // process kdenlive producers