]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.cpp
Fix regression introduced by document validation changes (document profile was not...
[kdenlive] / src / kdenlivedoc.cpp
index 79ad86cbd049916ef4323e5d1fa532dad8a4905e..90d3224ce96d9292e2c1db2357b2ca9ba39120db 100644 (file)
@@ -46,7 +46,7 @@
 
 const double DOCUMENTVERSION = 0.83;
 
-KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QPoint tracks, Render *render, MainWindow *parent) :
+KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, QString profileName, const QPoint tracks, Render *render, MainWindow *parent) :
         QObject(parent),
         m_autosave(NULL),
         m_url(url),
@@ -97,7 +97,7 @@ KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup
                         QDomElement infoXml = infoXmlNode.toElement();
                         QDomNode mlt = m_document.elementsByTagName("mlt").at(0);
 
-                        QString profilePath = infoXml.attribute("profile");
+                        profileName = infoXml.attribute("profile");
                         m_projectFolder = infoXml.attribute("projectfolder");
 
                         m_startPos = infoXml.attribute("position").toInt();