pidgin/gtkblist.c

changeset 21586
1f6bd334d6a0
parent 21585
7bdd57d17c4b
child 21630
591a79c1b295
equal deleted inserted replaced
21585:7bdd57d17c4b 21586:1f6bd334d6a0
4719 if (new) 4719 if (new)
4720 pidgin_blist_update_account_error_state(account, new->description); 4720 pidgin_blist_update_account_error_state(account, new->description);
4721 else 4721 else
4722 pidgin_blist_update_account_error_state(account, NULL); 4722 pidgin_blist_update_account_error_state(account, NULL);
4723 4723
4724 /* Don't bother updating the error if it hasn't changed. This stops
4725 * URGENT being repeatedly set for network errors whenever they try to
4726 * reconnect.
4727 */
4728 if ((old == new) ||
4729 (old != NULL && new != NULL && old->type == new->type
4730 && g_str_equal(old->description, new->description))
4731 )
4732 return;
4733
4724 if (old) { 4734 if (old) {
4725 if(old->type == PURPLE_CONNECTION_ERROR_NAME_IN_USE) 4735 if(old->type == PURPLE_CONNECTION_ERROR_NAME_IN_USE)
4726 remove_from_signed_on_elsewhere(account); 4736 remove_from_signed_on_elsewhere(account);
4727 else 4737 else
4728 remove_generic_error_dialog(account); 4738 remove_generic_error_dialog(account);

mercurial