changeset 6956:a084d95d59dc

[gaim-migrate @ 7503] this should speed signon up a bit committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 24 Sep 2003 23:26:32 +0000
parents 2d4ab97a177e
children 166e42b26654
files src/blist.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Wed Sep 24 23:19:25 2003 +0000
+++ b/src/blist.c	Wed Sep 24 23:26:32 2003 +0000
@@ -1340,9 +1340,11 @@
 			continue;
 		for(cnode = gnode->child; cnode; cnode = cnode->next) {
 			if(GAIM_BLIST_NODE_IS_CONTACT(cnode)) {
+				gboolean recompute = FALSE;
 					for(bnode = cnode->child; bnode; bnode = bnode->next) {
 						if(GAIM_BLIST_NODE_IS_BUDDY(bnode) &&
 								((GaimBuddy*)bnode)->account == account) {
+							recompute = TRUE;
 							((GaimContact*)cnode)->currentsize++;
 							if(((GaimContact*)cnode)->currentsize == 1)
 								((GaimGroup*)gnode)->currentsize++;
@@ -1354,8 +1356,10 @@
 							ops->update(gaimbuddylist, bnode);
 						}
 					}
-					gaim_contact_compute_priority_buddy((GaimContact*)cnode);
-					ops->update(gaimbuddylist, cnode);
+					if(recompute) {
+						gaim_contact_compute_priority_buddy((GaimContact*)cnode);
+						ops->update(gaimbuddylist, cnode);
+					}
 			} else if(GAIM_BLIST_NODE_IS_CHAT(cnode) &&
 					((GaimBlistChat*)cnode)->account == account) {
 				((GaimGroup *)gnode)->online++;