diff finch/gntblist.c @ 17254:0d9fba04fc85

Re-show the add buddy request dialog if something went wrong. It's easy to lose the buddy who just added you otherwise.
author Richard Nelson <wabz@pidgin.im>
date Wed, 23 May 2007 09:26:23 +0000
parents 46f2f86e08e4
children 319bcb73eb4e 29b3dc9cc8c5
line wrap: on
line diff
--- a/finch/gntblist.c	Wed May 23 06:28:36 2007 +0000
+++ b/finch/gntblist.c	Wed May 23 09:26:23 2007 +0000
@@ -113,6 +113,7 @@
 static void update_node_display(PurpleBlistNode *buddy, FinchBlist *ggblist);
 static void update_buddy_display(PurpleBuddy *buddy, FinchBlist *ggblist);
 static void account_signed_on_cb(PurpleConnection *pc, gpointer null);
+static void finch_request_add_buddy(PurpleAccount *account, const char *username, const char *grp, const char *alias);
 
 /* Sort functions */
 static int blist_node_compare_position(PurpleBlistNode *n1, PurpleBlistNode *n2);
@@ -285,6 +286,7 @@
 
 	if (error)
 	{
+		finch_request_add_buddy(account, username, group, alias);
 		purple_notify_error(NULL, _("Error"), _("Error adding buddy"), error);
 		return;
 	}