# HG changeset patch # User Will Thompson # Date 1195044048 0 # Node ID 1f6bd334d6a094e52d9603addb8037efcd336132 # Parent 7bdd57d17c4b2a77a64190a7427dfae2ceada2b5 Don't update the error in the buddy list if it hasn't changed. diff -r 7bdd57d17c4b -r 1f6bd334d6a0 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);