From c1b2bc942647172ddf1cb635ac75ab9cdd58c242 Mon Sep 17 00:00:00 2001 From: Eric Gregory Date: Mon, 8 Apr 2013 15:52:16 -0700 Subject: [PATCH] Closes #6779 Closes #6780 Account dialog issues: SMTP username available when noauth selected, ports don't switch automatically in add account dialog --- src/client/accounts/add-edit-page.vala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {