Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix missing clips appearing twice in project open dialog

parent d18f65bd
......@@ -393,11 +393,22 @@ bool DocumentChecker::hasErrorInClips()
clipType = i18n("Unknown");
type = ClipType::Unknown;
}
QString clipId = e.attribute(QStringLiteral("id")).section(QLatin1Char('_'), 0, 0);
if (processedIds.contains(clipId)) {
continue;
// Newer project format
QString clipId = Xml::getXmlProperty(e, QStringLiteral("kdenlive:id"));
if (!clipId.isEmpty()) {
if (processedIds.contains(clipId)) {
continue;
}
processedIds << clipId;
} else {
// Older project file format
clipId = e.attribute(QStringLiteral("id")).section(QLatin1Char('_'), 0, 0);
if (processedIds.contains(clipId)) {
continue;
}
processedIds << clipId;
}
processedIds << clipId;
QTreeWidgetItem *item = new QTreeWidgetItem(m_ui.treeWidget, QStringList() << clipType);
item->setData(0, statusRole, CLIPMISSING);
item->setData(0, clipTypeRole, (int)type);
......
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