Patch from kbotc: "Following Apple's documentation, we won't reload the children if they're not visible". Refs #14294.
authorRobert Vehse
Mon, 15 Aug 2011 23:19:09 +0200
changeset 3609 97743a0ab02c
parent 3608 c5435740e49b
child 3610 93c8292bc1c8
Patch from kbotc: "Following Apple's documentation, we won't reload the children if they're not visible". Refs #14294.
(transplanted from a00b7964253bf3ebd2430d07c2fc794657f20be7)
Source/AIListController.m
--- a/Source/AIListController.m	Sun Aug 21 15:06:27 2011 -0500
+++ b/Source/AIListController.m	Mon Aug 15 23:19:09 2011 +0200
@@ -423,8 +423,12 @@
 	if (!object || (object == contactList)) {
 		[contactListView reloadData];
 	} else {
-		for (AIProxyListObject *proxyObject in object.proxyObjects)
-			[contactListView reloadItem:proxyObject reloadChildren:YES];
+		for (AIProxyListObject *proxyObject in object.proxyObjects) {
+            if ([proxyObject.listObject isExpanded])
+                [contactListView reloadItem:proxyObject reloadChildren:YES];
+            else
+                [contactListView reloadItem:proxyObject reloadChildren:NO];
+        }
 	}
 }