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

Fix possible corruption when opening doc with slowmotion clip

parent ffd6c383
......@@ -144,9 +144,6 @@ bool DocumentChecker::hasErrorInClips()
}
resource = EffectsList::property(e, QStringLiteral("resource"));
if (resource.isEmpty()) continue;
if (QFileInfo(resource).isRelative()) {
resource.prepend(root);
}
if (service == QLatin1String("timewarp")) {
//slowmotion clip, trim speed info
resource = EffectsList::property(e, QStringLiteral("warp_resource"));
......@@ -155,6 +152,11 @@ bool DocumentChecker::hasErrorInClips()
//slowmotion clip, trim speed info
resource = resource.section(QStringLiteral("?"), 0, 0);
}
// Make sure to have absolute paths
if (QFileInfo(resource).isRelative()) {
resource.prepend(root);
}
if (verifiedPaths.contains(resource)) {
// Don't check same url twice (for example track producers)
continue;
......
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