changeset 25288:8a930bc2734d

Don't show the 'Edit Buddy Comment' option for PurpleBuddys that are not actually on our server list (such as the transient ones used for conversations with non-buddies), fixes Fedora bug 478727
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 08 Jan 2009 21:47:15 +0000
parents b333ebd093df
children a6bc9b89d736
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Thu Jan 08 14:16:42 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Thu Jan 08 21:47:15 2009 +0000
@@ -6200,10 +6200,13 @@
 		menu = g_list_prepend(menu, act);
 	}
 
-	act = purple_menu_action_new(_("Edit Buddy Comment"),
-	                           PURPLE_CALLBACK(oscar_buddycb_edit_comment),
-	                           NULL, NULL);
-	menu = g_list_prepend(menu, act);
+	if (aim_ssi_itemlist_exists(od->ssi.local, buddy->name) != NULL)
+	{
+		act = purple_menu_action_new(_("Edit Buddy Comment"),
+		                           PURPLE_CALLBACK(oscar_buddycb_edit_comment),
+		                           NULL, NULL);
+		menu = g_list_prepend(menu, act);
+	}
 
 #if 0
 	if (od->icq)