http://www.kdenlive.org/mantis/view.php?id=1427
svn path=/trunk/kdenlive/; revision=4302
QDomDocument sceneList;
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;
+ }
QDomElement addedXml = sceneList.createElement("kdenlivedoc");
mlt.appendChild(addedXml);