]> git.sesse.net Git - kdenlive/commitdiff
Make "reload clip" work on folders
authorTill Theato <root@ttill.de>
Wed, 21 Apr 2010 18:44:24 +0000 (18:44 +0000)
committerTill Theato <root@ttill.de>
Wed, 21 Apr 2010 18:44:24 +0000 (18:44 +0000)
svn path=/trunk/kdenlive/; revision=4393

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) {