Index: gal-define-views-dialog.c
===================================================================
RCS file: /cvs/gnome/gal/gal/menus/gal-define-views-dialog.c,v
retrieving revision 1.15
diff -u -r1.15 gal-define-views-dialog.c
--- gal-define-views-dialog.c	16 Jun 2002 22:42:03 -0000	1.15
+++ gal-define-views-dialog.c	6 Dec 2002 08:59:40 -0000
@@ -129,11 +129,14 @@
 			       "factory", &factory,
 			       NULL);
 		if (name && factory) {
-			view = gal_view_factory_new_view(factory,
+			g_strchomp(name);
+			if (name[0] != '\0') {
+				view = gal_view_factory_new_view(factory,
 							 name);
-			gal_define_views_model_append(GAL_DEFINE_VIEWS_MODEL(dialog->model), view);
-			gal_view_edit(view);
-			gtk_object_unref(GTK_OBJECT(view));
+				gal_define_views_model_append(GAL_DEFINE_VIEWS_MODEL(dialog->model), view);
+				gal_view_edit(view);
+				gtk_object_unref(GTK_OBJECT(view));
+			}
 		}
 		break;
 	}
