comparison pidgin/gtkblist.c @ 21498:040b4f646f35

Don't update the error in the buddy list if it hasn't changed.
author Will Thompson <will.thompson@collabora.co.uk>
date Wed, 14 Nov 2007 12:40:48 +0000
parents e2e70f45307f
children 665e04562de0
comparison
equal deleted inserted replaced
21497:e2e70f45307f 21498:040b4f646f35
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);