Index: addressbook/gui/widgets/e-minicard.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-minicard.c,v
retrieving revision 1.91
diff -u -r1.91 e-minicard.c
--- addressbook/gui/widgets/e-minicard.c	29 Aug 2002 07:29:29 -0000	1.91
+++ addressbook/gui/widgets/e-minicard.c	9 Dec 2002 02:09:26 -0000
@@ -695,6 +695,8 @@
 {
 	ECardSimpleType type;
 	char *string;
+	char *new_string;
+	gboolean is_list = FALSE;
 
 	type = GPOINTER_TO_INT
 		(gtk_object_get_data(GTK_OBJECT(text),
@@ -702,6 +704,27 @@
 	gtk_object_get(GTK_OBJECT(text),
 		       "text", &string,
 		       NULL);
+
+	new_string = e_card_simple_get (e_minicard->simple, 
+					E_CARD_SIMPLE_FIELD_IS_LIST); 
+
+	if ( NULL != new_string && 4 == strlen(new_string)) 
+		is_list = (g_strncasecmp ( new_string, "true", 4) == 0);
+	g_free (new_string);
+
+	if ( is_list && E_CARD_SIMPLE_FIELD_FULL_NAME == type) {
+		if (NULL==string || '\0'== string[0]) {
+			printf ("Try to set an empty name for list!\n");
+			g_free(string);
+			e_text_cancel_editing (text);
+			
+			gnome_dialog_run_and_close ( GNOME_DIALOG (gnome_warning_dialog("Cannot give an empty\nname to a contact list!\n")));
+			e_canvas_item_grab_focus (GNOME_CANVAS_ITEM (e_minicard), FALSE);
+			e_minicard->changed = TRUE;
+			return;
+		}
+	}
+
 	e_card_simple_set(e_minicard->simple,
 			  type,
 			  string);
