changeset 27920:6b05a0e36ffb

Fix setting the alias on a metacontact when it's not expanded. This is a patch.
author Paul Aurich <paul@darkrain42.org>
date Sun, 16 Aug 2009 03:23:54 +0000
parents 0db08d748475
children 6d3f3473cb4c df920ad8cf4f
files pidgin/gtkblist.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sun Aug 16 03:21:47 2009 +0000
+++ b/pidgin/gtkblist.c	Sun Aug 16 03:23:54 2009 +0000
@@ -622,7 +622,14 @@
 				struct _pidgin_blist_node *gtknode =
 					(struct _pidgin_blist_node *)purple_blist_node_get_ui_data(node);
 
-				if (purple_contact_get_alias(contact) || gtknode->contact_expanded) {
+				/*
+				 * XXX Using purple_contact_get_alias here breaks because we
+				 * specifically want to check the contact alias only (i.e. not
+				 * the priority buddy, which purple_contact_get_alias does).
+				 * Adding yet another get_alias is evil, so figure this out
+				 * later :-P
+				 */
+				if (contact->alias || gtknode->contact_expanded) {
 					purple_blist_alias_contact(contact, arg2);
 					gtk_blist_auto_personize(purple_blist_node_get_parent(node), arg2);
 				} else {