network: fix initial sensitivity of editor "Add" button

The "only make Apply/Add sensitive if something changed" rule should
not apply to new connections; they are already "changed".

https://bugzilla.gnome.org/show_bug.cgi?id=693659
This commit is contained in:
Dan Winship 2013-02-13 15:22:27 -05:00
parent 510998041a
commit dcb932bd9d

View file

@ -502,6 +502,7 @@ net_connection_editor_set_connection (NetConnectionEditor *editor,
button = GTK_WIDGET (gtk_builder_get_object (editor->builder, "details_apply_button"));
gtk_button_set_label (GTK_BUTTON (button), _("_Add"));
editor->is_changed = TRUE;
}
editor->connection = nm_connection_duplicate (connection);