]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.cpp
Fix project tree butons update when adding/removing clips
[kdenlive] / src / kdenlivedoc.cpp
index 5c889404c04a886b89285942296d09b0331f2e45..cd1de3829b0b49bd2005867776d38621dc26f5c0 100644 (file)
@@ -482,9 +482,9 @@ bool KdenliveDoc::saveSceneList(const QString &path, const QString &scene)
     sceneList.setContent(scene, true);
     QDomElement mlt = sceneList.firstChildElement("mlt");
     if (mlt.isNull() || !mlt.hasChildNodes()) {
-       //Make sure we don't save if scenelist is corrupted
-       KMessageBox::error(kapp->activeWindow(), i18n("Cannot write to file %1", path));
-       return false;
+        //Make sure we don't save if scenelist is corrupted
+        KMessageBox::error(kapp->activeWindow(), i18n("Cannot write to file %1", path));
+        return false;
     }
     QDomElement addedXml = sceneList.createElement("kdenlivedoc");
     mlt.appendChild(addedXml);
@@ -1020,14 +1020,6 @@ void KdenliveDoc::addClipInfo(QDomElement elem, QDomElement orig, QString clipId
     }
 }
 
-void KdenliveDoc::deleteProjectClip(QStringList ids)
-{
-    for (int i = 0; i < ids.size(); ++i) {
-        emit deleteTimelineClip(ids.at(i));
-    }
-    m_clipManager->slotDeleteClips(ids);
-    setModified(true);
-}
 
 void KdenliveDoc::deleteClip(const QString &clipId)
 {