diff src/dialogs.c @ 5975:80e5258226f3

[gaim-migrate @ 6422] I made some changes so that, if you have 2 buddies in your buddy list with the same name, and you delete one by right clicking on it in the blist, gaim will delete the one you right clicked rather than an arbitrary one. I think the hash table that speeds up stuff in gtkblist.c has problems with having the same buddy in a group twice. Someone should look into that. Like, right now it treats buddy name/group name/account as a unique key, but right now that is not a unique key. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 29 Jun 2003 20:57:28 +0000
parents 730015652f4d
children 272c761c52e3
line wrap: on
line diff
--- a/src/dialogs.c	Sun Jun 29 07:50:48 2003 +0000
+++ b/src/dialogs.c	Sun Jun 29 20:57:28 2003 +0000
@@ -440,16 +440,15 @@
 	gaim_blist_save();
 }
 
-void show_confirm_del(GaimConnection *gc, gchar *name)
+void show_confirm_del(struct buddy *b)
 {
-	struct buddy *bd = gaim_find_buddy(gc->account, name);
 	char *text;
-	if (!bd)
+	if (!b)
 		return;
 
-	text = g_strdup_printf(_("You are about to remove %s from your buddy list.  Do you want to continue?"), name);
-
-	gaim_request_action(NULL, NULL, _("Remove Buddy"), text, -1, bd, 2,
+	text = g_strdup_printf(_("You are about to remove %s from your buddy list.  Do you want to continue?"), b->name);
+
+	gaim_request_action(NULL, NULL, _("Remove Buddy"), text, -1, b, 2,
 						_("Remove Buddy"), G_CALLBACK(do_remove_buddy),
 						_("Cancel"), NULL);