]> git.sesse.net Git - kdenlive/blobdiff - src/trackview.cpp
Fix timeline cursor position when opening a project
[kdenlive] / src / trackview.cpp
index b9df353dd99e288215eec4cbbd8c4cd7c8475ed8..e46a750b58f4e8b216f094429818b210de2aa381 100644 (file)
@@ -415,6 +415,12 @@ void TrackView::parseDocument(QDomDocument doc)
     }
     QDomElement infoXml = mlt.firstChildElement("kdenlivedoc");
 
+    QDomElement propsXml = infoXml.firstChildElement("documentproperties");
+    
+    int currentPos = propsXml.attribute("position").toInt();
+    if (currentPos > 0) m_trackview->initCursorPos(currentPos);
+    
+
     // Add guides
     QDomNodeList guides = infoXml.elementsByTagName("guide");
     for (int i = 0; i < guides.count(); i++) {