]> granicus.if.org Git - transmission/commitdiff
(gtk) #5284 'file tree should show the wanted size of the subtree, not the entire...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 9 Feb 2013 19:28:38 +0000 (19:28 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 9 Feb 2013 19:28:38 +0000 (19:28 +0000)
gtk/file-list.c

index 471f8b8f874dc79de12ddedb661ebea337d6f978..a3432e0520fd6857e1031beb7e6350fae1aa7eb6 100644 (file)
@@ -180,8 +180,11 @@ refreshFilesForeach (GtkTreeModel * model,
                                                FC_ENABLED, &child_enabled,
                                                -1);
 
-            sub_size += child_size;
-            have += child_have;
+            if ((child_enabled != FALSE) && (child_enabled != NOT_SET))
+            {
+              sub_size += child_size;
+              have += child_have;
+            }
 
             if (enabled == NOT_SET)
                 enabled = child_enabled;