-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you choose to filter the effect list, folders containing no effect
which fit the filter should be hidden.

For example if you select "Audio" you shouldn't be displayed the empty
"Colour" folder.


regards ttill
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuxw/QACgkQzwEyz7QP6nR/6gCffspn+avLfHJZDDgFN1pxJmSK
ahEAnilWlIFBIa04khqKoMYGpycNeqAj
=t4Nc
-----END PGP SIGNATURE-----
Index: src/effectslistview.cpp
===================================================================
--- src/effectslistview.cpp	(revision 4361)
+++ src/effectslistview.cpp	(working copy)
@@ -67,14 +67,26 @@
 {
     QTreeWidgetItem *item;
     QTreeWidgetItem *folder;
+    bool hideFolder = true;
     for (int i = 0; i < m_effectsList->topLevelItemCount(); i++) {
+		hideFolder = true;
         folder = m_effectsList->topLevelItem(i);
         for (int j = 0; j < folder->childCount(); j++) {
             item = folder->child(j);
-            if (pos == 0) item->setHidden(false);
-            else if (item->data(0, Qt::UserRole).toInt() == pos) item->setHidden(false);
-            else item->setHidden(true);
+            if (pos == 0) {
+				item->setHidden(false);
+				hideFolder = false;
+            } else if (item->data(0, Qt::UserRole).toInt() == pos) {
+				item->setHidden(false);
+				hideFolder = false;
+            } else {
+				item->setHidden(true);
+			}
         }
+        // do not hide if ALL is selected but folder is empty
+        if (pos == 0) hideFolder = false;
+        
+        folder->setHidden(hideFolder);
     }
     item = m_effectsList->currentItem();
     /*if (item) {
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Kdenlive-devel mailing list
Kdenlive-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kdenlive-devel

Reply via email to