]> git.sesse.net Git - kdenlive/blobdiff - src/trackview.cpp
Fix clip count & duration on document opening
[kdenlive] / src / trackview.cpp
index 7abd8d5da22ffcc1abff1eb3082845b7fc5a4234..8cf99e9d5e6ad4d294a01cfe66eb7957bebda536 100644 (file)
@@ -347,6 +347,7 @@ int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool videotrack) {
                 //kDebug() << "// INSERTING CLIP: " << in << "x" << out << ", track: " << ix << ", ID: " << id << ", SCALE: " << m_scale << ", FPS: " << m_doc->fps();
                 ClipItem *item = new ClipItem(clip, clipinfo, GenTime(in, m_doc->fps()), m_scale, m_doc->fps());
                 m_scene->addItem(item);
+                clip->addReference();
                 position += (out - in);
 
                 // parse clip effects
@@ -461,6 +462,7 @@ int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool videotrack) {
                             }
                         }
                         item->addEffect(clipeffect, false);
+                        item->effectsCounter();
                     }
                 }