# HG changeset patch # User Mark Doliner # Date 1079243669 0 # Node ID f6483c880eaf271bb82a667a82966087c5c327cf # Parent e401e0e2f0e169b55fabf60b66af188ee45fd449 [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 diff -r e401e0e2f0e1 -r f6483c880eaf COPYRIGHT --- 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 diff -r e401e0e2f0e1 -r f6483c880eaf src/gtkblist.c --- 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",