changeset 5187:7c1c9bdc1f8e

[gaim-migrate @ 5552] fixes a crash toggling preferences. thanks for pointing that out ari. also fixes some stupid warnings when you sign on and off too fast. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 20 Apr 2003 22:50:09 +0000
parents a107115a13ae
children f232875835a8
files src/buddy.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Sun Apr 20 20:56:14 2003 +0000
+++ b/src/buddy.c	Sun Apr 20 22:50:09 2003 +0000
@@ -1086,6 +1086,9 @@
 
 void gaim_gtk_blist_update_columns()
 {
+	if(!gtkblist)
+		return;
+
 	if (blist_options & OPT_BLIST_SHOW_ICONS) {
 		gtk_tree_view_column_set_visible(gtkblist->buddy_icon_column, TRUE);
 		gtk_tree_view_column_set_visible(gtkblist->idle_column, FALSE);
@@ -1637,6 +1640,7 @@
 	gtkblist->bbox = gtkblist->tipwindow = NULL;
 	protomenu = NULL;
 	awaymenu = NULL;
+	gtkblist = NULL;
 }
 
 static void gaim_gtk_blist_set_visible(struct gaim_buddy_list *list, gboolean show)