diff src/dialogs.c @ 2561:f9bdfca15404

[gaim-migrate @ 2574] Fixed a bug that causes the group list to not be updated when you change accounts (on the add buddy dialog) [reported by espectro] committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sat, 20 Oct 2001 18:30:20 +0000
parents d3e463a5cafc
children 552a56d334ec
line wrap: on
line diff
--- a/src/dialogs.c	Fri Oct 19 21:57:09 2001 +0000
+++ b/src/dialogs.c	Sat Oct 20 18:30:20 2001 +0000
@@ -816,7 +816,11 @@
 {
 	struct addbuddy *b = gtk_object_get_user_data(w);
 
+	/* Save our account */
 	b->gc = gc;
+
+	/* We also want to update our group list */	
+	gtk_combo_set_popdown_strings(GTK_COMBO(b->combo), groups_tree(gc ? gc : connections->data));
 }
 
 static void create_online_user_names(struct addbuddy *b)