]> git.sesse.net Git - kdenlive/blobdiff - src/projectlist.cpp
Make "reload clip" work on folders
[kdenlive] / src / projectlist.cpp
index 6b9e129bb49eece7f4ad4174b0f3927fa0581580..41c7456e90d15b0f9c84515c0434457a1aae832c 100644 (file)
@@ -371,7 +371,13 @@ void ProjectList::slotReloadClip(const QString &id)
     else selected.append(getItemById(id));
     ProjectItem *item;
     for (int i = 0; i < selected.count(); i++) {
-        if (selected.at(i)->type() != PROJECTCLIPTYPE) continue;
+        if (selected.at(i)->type() != PROJECTCLIPTYPE) {
+            if (selected.at(i)->type() == PROJECTFOLDERTYPE) {
+                    for (int j = 0; j < selected.at(i)->childCount(); j++)
+                        selected.append(selected.at(i)->child(j));
+            }
+            continue;
+        }
         item = static_cast <ProjectItem *>(selected.at(i));
         if (item) {
             if (item->clipType() == TEXT) {