]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
Fix compilation with KDE < 4.4
[kdenlive] / src / renderer.cpp
index bde98fdc2d70bcd56809828bcccd61bf31a58779..3dd02443f01c6d1c5783c37d01bed8a249109e9d 100644 (file)
@@ -1261,7 +1261,6 @@ const QString Render::sceneList()
     if (split) slotSplitView(false);
     xmlConsumer.connect(prod);
     xmlConsumer.run();
-    //while (!xmlConsumer.is_stopped()) {}
     playlist = QString::fromUtf8(xmlConsumer.get("kdenlive_playlist"));
     if (split) slotSplitView(true);
     return playlist;
@@ -1272,6 +1271,7 @@ bool Render::saveSceneList(QString path, QDomElement kdenliveData)
     QFile file(path);
     QDomDocument doc;
     doc.setContent(sceneList(), false);
+    if (doc.isNull()) return false;
     QDomElement root = doc.documentElement();
     if (!kdenliveData.isNull() && !root.isNull()) {
         // add Kdenlive specific tags