Mercurial > pidgin
comparison src/dialogs.c @ 6088:4314e6be74c4
[gaim-migrate @ 6547]
Fix removing groups containing chats, thanks to javabsp.
Make sound prefs with empty file names show up as "(default)" rather
than an empty input box.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 11 Jul 2003 05:10:56 +0000 |
parents | 3a40666c08b4 |
children | 786adff640e1 |
comparison
equal
deleted
inserted
replaced
6087:6e24de5efdb2 | 6088:4314e6be74c4 |
---|---|
422 GaimBlistNode *b = ((GaimBlistNode*)g)->child; | 422 GaimBlistNode *b = ((GaimBlistNode*)g)->child; |
423 while (b) { | 423 while (b) { |
424 if(GAIM_BLIST_NODE_IS_BUDDY(b)) { | 424 if(GAIM_BLIST_NODE_IS_BUDDY(b)) { |
425 struct buddy *bd = (struct buddy *)b; | 425 struct buddy *bd = (struct buddy *)b; |
426 GaimConversation *c = gaim_find_conversation(bd->name); | 426 GaimConversation *c = gaim_find_conversation(bd->name); |
427 if(bd->account->gc) { | 427 if (gaim_account_is_connected(bd->account)) { |
428 serv_remove_buddy(bd->account->gc, bd->name, g->name); | 428 serv_remove_buddy(bd->account->gc, bd->name, g->name); |
429 gaim_blist_remove_buddy(bd); | 429 gaim_blist_remove_buddy(bd); |
430 | 430 |
431 if (c != NULL) | 431 if (c != NULL) |
432 gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE); | 432 gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE); |
433 } | |
434 } else if(GAIM_BLIST_NODE_IS_CHAT(b)) { | |
435 struct chat *chat = (struct chat *)b; | |
436 if (gaim_account_is_connected(chat->account)) { | |
437 gaim_blist_remove_chat(chat); | |
433 } | 438 } |
434 } | 439 } |
435 b = b->next; | 440 b = b->next; |
436 } | 441 } |
437 gaim_blist_remove_group(g); | 442 gaim_blist_remove_group(g); |