Mercurial > pidgin
changeset 12009:8a7553e149de
[gaim-migrate @ 14302]
This should fix a crash Ethan is seeing when his gg account fails to
sign on at startup.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 08 Nov 2005 23:44:00 +0000 |
parents | 91aaa1b3ac30 |
children | b41b75f709e4 |
files | src/gtkconn.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconn.c Tue Nov 08 23:34:54 2005 +0000 +++ b/src/gtkconn.c Tue Nov 08 23:44:00 2005 +0000 @@ -136,7 +136,7 @@ static void gaim_gtk_connection_report_disconnect(GaimConnection *gc, const char *text) { - GaimGtkBuddyList *list = gaim_gtk_blist_get_default_gtk_blist(); + GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); GaimAccount *account = NULL; GaimAutoRecon *info; GSList* listAccount; @@ -153,9 +153,10 @@ listAccount = NULL; if (!gc->wants_to_die) { - gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(list->statusbox), text); + if (gtkblist != NULL) + gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), text); - if (info == NULL) { + if (info == NULL) { info = g_new0(GaimAutoRecon, 1); g_hash_table_insert(hash, account, info); info->delay = INITIAL_RECON_DELAY;