# HG changeset patch # User Stu Tomlinson # Date 1231451235 0 # Node ID 8a930bc2734de977a90171b12135299f94db5274 # Parent b333ebd093dff3f96608ec5fc583ed12aaea6311 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 diff -r b333ebd093df -r 8a930bc2734d libpurple/protocols/oscar/oscar.c --- 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)