]> git.sesse.net Git - kdenlive/commitdiff
Display error message if proxy duration is incorrect
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 28 Apr 2011 20:08:55 +0000 (20:08 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 28 Apr 2011 20:08:55 +0000 (20:08 +0000)
svn path=/trunk/kdenlive/; revision=5565

src/projectlist.cpp

index 6229a52fe2adf8fc0461bb75ef3165b3332989b3..375a1c2c488f5261a0325fe2089f70946920eb52 100644 (file)
@@ -1299,8 +1299,10 @@ void ProjectList::slotRemoveInvalidProxy(const QString &id, bool durationError)
 {
     ProjectItem *item = getItemById(id);
     if (item) {
-        //TODO: use durationError to display correct message to user after 0.8 release
-        if (durationError) kDebug() << "Proxy duration is wrong, try changing transcoding parameters.";
+        if (durationError) {
+            kDebug() << "Proxy duration is wrong, try changing transcoding parameters.";
+            emit displayMessage(i18n("Proxy clip unusable (duration is different from original)."), -2);
+        }
         item->setProxyStatus(PROXYCRASHED);
         QString path = item->referencedClip()->getProperty("proxy");
         KUrl proxyFolder(m_doc->projectFolder().path( KUrl::AddTrailingSlash) + "proxy/");