From 44cfe09973b495eb20d25fe1acf962cf89032024 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Thu, 6 May 2010 11:55:43 +0000 Subject: [PATCH] Fix detection of missing luma files on document opening svn path=/trunk/kdenlive/; revision=4417 --- src/documentchecker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/documentchecker.cpp b/src/documentchecker.cpp index d5f7847f..ecde54cf 100644 --- a/src/documentchecker.cpp +++ b/src/documentchecker.cpp @@ -99,9 +99,12 @@ bool DocumentChecker::hasMissingClips() } QStringList missingLumas; + QString root = m_doc.documentElement().attribute("root"); + if (!root.isEmpty()) root = KUrl(root).path(KUrl::AddTrailingSlash); QDomNodeList trans = m_doc.elementsByTagName("transition"); for (int i = 0; i < trans.count(); i++) { QString luma = getProperty(trans.at(i).toElement(), "luma"); + if (!luma.startsWith('/')) luma.prepend(root); if (!luma.isEmpty() && !QFile::exists(luma)) { if (!missingLumas.contains(luma)) { missingLumas.append(luma); -- 2.39.2