changeset 1080:e6637ff33957

[gaim-migrate @ 1090] removing none shouldn't crash committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 10 Nov 2000 05:54:04 +0000
parents a4635c7c2128
children efcacae6acdb
files src/prefs.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefs.c	Fri Nov 10 04:11:34 2000 +0000
+++ b/src/prefs.c	Fri Nov 10 05:54:04 2000 +0000
@@ -1215,6 +1215,7 @@
 
         i = GTK_LIST(prefs_away_list)->selection;
 
+	if (!i) return;
 	if (!i->next) {
 		int text_len = gtk_text_get_length(GTK_TEXT(away_text));
 		gtk_text_set_point(GTK_TEXT(away_text), 0 );