im.pidgin.pidgin: 77ab949e0925a5edfc71240de20bb2a117c01ca7

resiak at soc.pidgin.im resiak at soc.pidgin.im
Wed Nov 14 07:48:41 EST 2007


-----------------------------------------------------------------
Revision: 77ab949e0925a5edfc71240de20bb2a117c01ca7
Ancestor: c8b1856cef843f416d9ecf13198f232fe7ba741b
Author: resiak at soc.pidgin.im
Date: 2007-11-14T12:40:48
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Don't update the error in the buddy list if it hasn't changed.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	4cfa7748e1b21324624d62dcbf99415711268fe2
+++ pidgin/gtkblist.c	dcfdc4afdd9fb435c710bf230dcd1db9292c4ea8
@@ -4721,6 +4721,16 @@ update_account_error_state(PurpleAccount
 	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);


More information about the Commits mailing list