Tue, 06 May 2003 05:28:41 +0000
[gaim-migrate @ 5685]
fix online accounts when dragging buddies around
| src/blist.c | file | annotate | diff | comparison | revisions |
--- 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));