]> git.sesse.net Git - kdenlive/blobdiff - src/projectitem.cpp
Display proxy creation progress in project tree
[kdenlive] / src / projectitem.cpp
index 4f6ab88a7e14d68ed2d41135e2f7e575dbdd6dc2..e7b942b30a9be9f37bc59c9b52569d8d4a6e13a4 100644 (file)
@@ -253,9 +253,10 @@ void ProjectItem::setProperties(const QMap < QString, QString > &attributes, con
     }
 }
 
-void ProjectItem::setProxyStatus(PROXYSTATUS status)
+void ProjectItem::setProxyStatus(PROXYSTATUS status, int progress)
 {
-    setData(0, ProxyRole, status);
+    if (progress > 0) setData(0, ProxyRole, progress);
+    else setData(0, ProxyRole, status);
 }
 
 bool ProjectItem::hasProxy() const