gtk/plugins/gevolution/new_person_dialog.c

changeset 14729
e92987067d2a
parent 14253
b63ebf84c42b
child 20470
77693555855f
child 20472
6a6d2ef151e6
--- a/gtk/plugins/gevolution/new_person_dialog.c	Sun Oct 01 06:11:05 2006 +0000
+++ b/gtk/plugins/gevolution/new_person_dialog.c	Sun Oct 01 15:05:45 2006 +0000
@@ -412,7 +412,8 @@
 	/* Add button */
 	button = gtk_button_new_from_stock(GTK_STOCK_ADD);
 	dialog->add_button = button;
-	gtk_widget_set_sensitive(button, FALSE);
+	if (username == NULL || *username == '\0')
+		gtk_widget_set_sensitive(button, FALSE);
 	gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
 	gtk_widget_show(button);
 

mercurial