]> git.sesse.net Git - kdenlive/blobdiff - src/trackview.cpp
Try to make sure we don't create url's with // in them
[kdenlive] / src / trackview.cpp
index 3abf8579b66cedcdef22f7eca3573acb6f4b85f0..40a408c5fe87be884aecc164836e7df007fd3737 100644 (file)
@@ -737,7 +737,7 @@ DocClipBase *TrackView::getMissingProducer(const QString id) const
         }
     }
     // prepend MLT XML document root if no path in clip resource and not a color clip
-    if (!resource.contains('/') && !resource.startsWith("0x")) resource.prepend(docRoot);
+    if (!resource.startsWith('/') && !resource.startsWith("0x")) resource.prepend(docRoot);
     DocClipBase *missingClip = NULL;
     if (!resource.isEmpty())
         missingClip = m_doc->clipManager()->getClipByResource(resource);