Fix the auto-personize stuff. Closes #9948.

Tue, 25 Aug 2009 06:16:23 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Tue, 25 Aug 2009 06:16:23 +0000
changeset 28375
6773ee1f5074
parent 28373
14e79bd71ac3
child 28376
c1af2f0e8c19

Fix the auto-personize stuff. Closes #9948.

ChangeLog file | annotate | diff | comparison | revisions
pidgin/gtkblist.c file | annotate | diff | comparison | revisions
--- a/ChangeLog	Tue Aug 25 03:54:33 2009 +0000
+++ b/ChangeLog	Tue Aug 25 06:16:23 2009 +0000
@@ -17,6 +17,9 @@
 	Finch:
 	* Properly detect libpanel on OpenBSD.  (Brad Smith)
 
+	Pidgin:
+	* Fix the auto-personize functionality in the Buddy List.
+
 version 2.6.1 (08/18/2009):
 	* Fix a crash when some users send you a link in a Yahoo IM
 	* Fix compilation with GTK+ < 2.6.0
--- a/pidgin/gtkblist.c	Tue Aug 25 03:54:33 2009 +0000
+++ b/pidgin/gtkblist.c	Tue Aug 25 06:16:23 2009 +0000
@@ -496,15 +496,12 @@
 	for (tmp = merges; tmp; tmp = tmp->next) {
 		PurpleBlistNode *node = tmp->data;
 		PurpleBlistNode *b;
-		PurpleBlistNodeType type;
 		int i = 0;
 
-		type = purple_blist_node_get_type(node);
-
-		if(type == PURPLE_BLIST_BUDDY_NODE)
+		if (purple_blist_node_get_type(node) == PURPLE_BLIST_BUDDY_NODE)
 			node = purple_blist_node_get_parent(node);
 
-		if(type == PURPLE_BLIST_CONTACT_NODE)
+		if (purple_blist_node_get_type(node) != PURPLE_BLIST_CONTACT_NODE)
 			continue;
 
 		for (b = purple_blist_node_get_first_child(node);

mercurial