# HG changeset patch # User Will Thompson # Date 1195044048 0 # Node ID 040b4f646f3581165d4291696092bcb9be757181 # Parent e2e70f45307f0a18276e59ece60d48a1abe84d2b Don't update the error in the buddy list if it hasn't changed. diff -r e2e70f45307f -r 040b4f646f35 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Wed Nov 14 12:26:52 2007 +0000 +++ b/pidgin/gtkblist.c Wed Nov 14 12:40:48 2007 +0000 @@ -4721,6 +4721,16 @@ else pidgin_blist_update_account_error_state(account, NULL); + /* Don't bother updating the error if it hasn't changed. This stops + * URGENT being repeatedly set for network errors whenever they try to + * reconnect. + */ + if ((old == new) || + (old != NULL && new != NULL && old->type == new->type + && g_str_equal(old->description, new->description)) + ) + return; + if (old) { if(old->type == PURPLE_CONNECTION_ERROR_NAME_IN_USE) remove_from_signed_on_elsewhere(account);