]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.cpp
Start of the new document checker (check for missing clips,...) not fully functionnal yet
[kdenlive] / src / kdenlivedoc.cpp
index f20526e04b9228742d82b278b05d4e9ce8659ed8..eb12c9f4a183d5dc16138a1e726acc8cc7701c87 100644 (file)
@@ -26,6 +26,7 @@
 #include "clipmanager.h"
 #include "titlewidget.h"
 #include "mainwindow.h"
+#include "documentchecker.h"
 #include "kdenlive-config.h"
 
 #include <KDebug>
@@ -133,7 +134,7 @@ KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup
                         }
                         westley.removeChild(tracksinfo);
                     }
-
+                    checkDocumentClips();
                     QDomNodeList producers = m_document.elementsByTagName("producer");
                     QDomNodeList infoproducers = m_document.elementsByTagName("kdenlive_producer");
                     const int max = producers.count();
@@ -1679,5 +1680,12 @@ QString KdenliveDoc::getLadspaFile() const
     return m_projectFolder.path() + "/ladspa/" + counter + ".ladspa";
 }
 
+void KdenliveDoc::checkDocumentClips()
+{
+    DocumentChecker d(m_document);
+    d.exec();
+}
+
+
 #include "kdenlivedoc.moc"