diff src/gtkaccount.c @ 5955:235a14ae42f1

[gaim-migrate @ 6399] The protocol drop-down on the Add Account dialog is now updated when changed. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 25 Jun 2003 05:01:50 +0000
parents a4f2aba0848d
children 0a2a32b1917c
line wrap: on
line diff
--- a/src/gtkaccount.c	Wed Jun 25 04:20:30 2003 +0000
+++ b/src/gtkaccount.c	Wed Jun 25 05:01:50 2003 +0000
@@ -184,8 +184,10 @@
 set_account_protocol_cb(GtkWidget *item, GaimProtocol protocol,
 						  AccountPrefsDialog *dialog)
 {
-	if ((dialog->plugin = gaim_find_prpl(protocol)) != NULL)
+	if ((dialog->plugin = gaim_find_prpl(protocol)) != NULL) {
 		dialog->prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(dialog->plugin);
+		dialog->protocol = dialog->prpl_info->protocol;
+	}
 
 	dialog->protocol_id = dialog->plugin->info->id;