changeset 5313:8d118c2b03c9

[gaim-migrate @ 5685] fix online accounts when dragging buddies around committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 06 May 2003 05:28:41 +0000
parents 89948fedf782
children 1f901484599d
files src/blist.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Tue May 06 04:45:26 2003 +0000
+++ b/src/blist.c	Tue May 06 05:28:41 2003 +0000
@@ -414,6 +414,8 @@
 		((struct group *)bnode->parent)->totalsize--;
 		if (buddy->account->gc)
 			((struct group *)bnode->parent)->currentsize--;
+		if (buddy->present)
+			((struct group *)bnode->parent)->online--;
 
 		if(bnode->next)
 			bnode->next->prev = bnode->prev;
@@ -440,6 +442,8 @@
 		((struct group *)n->parent)->totalsize++;
 		if (buddy->account->gc)
 			((struct group *)n->parent)->currentsize++;
+		if (buddy->present)
+			((struct group *)n->parent)->online++;
 	} else {
 		((GaimBlistNode*)g)->child = (GaimBlistNode*)buddy;
 		((GaimBlistNode*)buddy)->next = NULL;
@@ -448,6 +452,8 @@
 		g->totalsize++;
 		if (buddy->account->gc)
 			g->currentsize++;
+		if (buddy->present)
+			g->online++;
 	}
 
 	hb = g_malloc(sizeof(struct _gaim_hbuddy));