# HG changeset patch # User Stu Tomlinson # Date 1159715145 0 # Node ID 70f68b34b311cf7563e0552b554331cd27eca59a # Parent 877b6d5ddf2607ed061b4f6041bf9cc78e1a33ed [gaim-migrate @ 17413] Only de-sensitize the Add button if no username is set committer: Tailor Script diff -r 877b6d5ddf26 -r 70f68b34b311 gtk/plugins/gevolution/new_person_dialog.c --- 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);