pidgin: 43e256e2: Don't show the 'Edit Buddy Comment' opti...

nosnilmot at pidgin.im nosnilmot at pidgin.im
Thu Jan 8 16:50:51 EST 2009


-----------------------------------------------------------------
Revision: 43e256e22a4b4968ead524cf843a3221a837e6e5
Ancestor: ac9ab8a79b7f7930a0a42efaccce7a968f357578
Author: nosnilmot at pidgin.im
Date: 2009-01-08T21:47:15
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/43e256e22a4b4968ead524cf843a3221a837e6e5

Modified files:
        libpurple/protocols/oscar/oscar.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	279f7fa19697796dfce9b07876dd1776f2d80d8c
+++ libpurple/protocols/oscar/oscar.c	df9c1dd9a0c07de4061d536e80bc683b3dcbe699
@@ -6200,10 +6200,13 @@ oscar_buddy_menu(PurpleBuddy *buddy) {
 		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)


More information about the Commits mailing list