changeset 8444:f6483c880eaf

[gaim-migrate @ 9174] I still don't think this is the best way to fix this, but it works. Daniel Larsson caught a nice crash in CVS: "When joining a chat, Gaim crashes if the first connection's account (first in the list returned by gaim_connections_get_all()) is from a plugin not supporting chat. When building the GUI, rebuild_joinchat_entries is called with the first account." A better fix would be to have gaim_gtk_account_option_menu_new() call rebuild_joinchat_entires(the first gc that supports chats) automatically (by way of join_chat_select_account_cb). Also, someone buy Luke a nice 19" LCD that'll do 1600x1200 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 14 Mar 2004 05:54:29 +0000
parents e401e0e2f0e1
children 46f3c447da4d
files COPYRIGHT src/gtkblist.c
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Sun Mar 14 05:45:08 2004 +0000
+++ b/COPYRIGHT	Sun Mar 14 05:54:29 2004 +0000
@@ -62,6 +62,7 @@
 Tero Kuusela
 Scott Lamb
 Dennis Lambe Jr.
+Daniel Larsson
 Ho-seok Lee
 Moses Lei
 Ambrose C. Li
--- a/src/gtkblist.c	Sun Mar 14 05:45:08 2004 +0000
+++ b/src/gtkblist.c	Sun Mar 14 05:54:29 2004 +0000
@@ -865,9 +865,14 @@
 	gtk_container_add(GTK_CONTAINER(vbox), data->entries_box);
 	gtk_container_set_border_width(GTK_CONTAINER(data->entries_box), 0);
 
-
-	data->account =
-		gaim_connection_get_account(gaim_connections_get_all()->data);
+	for (c = gaim_connections_get_all(); c != NULL; c = c->next)
+	{
+		gc = c->data;
+
+		if (GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl)->join_chat)
+			break;
+	}
+	data->account =	gaim_connection_get_account(gc);
 	rebuild_joinchat_entries(data);
 
 	g_signal_connect(G_OBJECT(data->window), "response",