diff --git a/src/client/accounts/add-edit-page.vala b/src/client/accounts/add-edit-page.vala index 68715d98..8d9075a7 100644 --- a/src/client/accounts/add-edit-page.vala +++ b/src/client/accounts/add-edit-page.vala @@ -352,6 +352,9 @@ public class AddEditPage : Gtk.Box { public void reset_all() { // Take advantage of set_all_info()'s defaults. set_all_info(get_default_real_name()); + + edited_imap_port = false; + edited_smtp_port = false; } /** Puts this page into one of three different modes: @@ -577,7 +580,6 @@ public class AddEditPage : Gtk.Box { other_info.show(); set_other_info_sensitive(true); check_remember_password.label = _("Re_member passwords"); // Plural - entry_smtp_password.sensitive = !smtp_noauth; } else { // For special-cased providers, only display necessary info. label_password.show(); @@ -601,6 +603,11 @@ public class AddEditPage : Gtk.Box { check_smtp_noauth.sensitive = mode != PageMode.EDIT; + if (smtp_noauth) { + entry_smtp_username.sensitive = false; + entry_smtp_password.sensitive = false; + } + // Update error text. label_error.visible = false; if (last_validation_result == Geary.Engine.ValidationResult.OK) {