Commit 7d0c6bc0 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash opening Kdenlive project files < 0.9

parent d180c984
......@@ -1259,6 +1259,15 @@ bool DocumentValidator::upgrade(double version, const double currentVersion)
break;
}
}
if (playlist.isNull()) {
for (int i = 0; i < playlists.count(); i++) {
if (playlists.at(i).toElement().attribute(QStringLiteral("id")) == QLatin1String("main bin")) {
playlist = playlists.at(i).toElement();
playlist.setAttribute("id", BinPlaylist::binPlaylistId);
break;
}
}
}
// Migrate document notes
QDomNodeList notesList = m_doc.elementsByTagName(QStringLiteral("documentnotes"));
if (!notesList.isEmpty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment