# HG changeset patch # User Nathan Walp # Date 1052198921 0 # Node ID 8d118c2b03c93f04aaca8f7d720d2bc3fe4873fe # Parent 89948fedf7826c3c64aa69e5235723dcc3b118a6 [gaim-migrate @ 5685] fix online accounts when dragging buddies around committer: Tailor Script diff -r 89948fedf782 -r 8d118c2b03c9 src/blist.c --- 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));