Mercurial > pidgin
changeset 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 | c6834071f6c5 |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);