diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2009-06-24 16:53:33 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@novell.com> | 2009-06-24 16:56:51 +0800 |
commit | ae925791901540bf485ddc3e7e613768e93ebebd (patch) | |
tree | b1932d452bb7149f47a61fe2af8e6efe0f941d99 /mail | |
parent | 464c88db8df8436924e10aa4f1b9ef15e61ea2dc (diff) | |
download | gsoc2013-evolution-ae925791901540bf485ddc3e7e613768e93ebebd.tar.gz gsoc2013-evolution-ae925791901540bf485ddc3e7e613768e93ebebd.tar.zst gsoc2013-evolution-ae925791901540bf485ddc3e7e613768e93ebebd.zip |
Fixes a bug where edit accounts are treated as new accounts and
acc/auto-config starts working.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-account-editor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 95b525a8a9..287fecc140 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2746,6 +2746,7 @@ emae_check_complete(EConfig *ec, const gchar *pageid, gpointer data) const gchar *tmp; EAccount *ea; gboolean refresh = FALSE; + gboolean edit = emae->original != NULL; /* We use the page-check of various pages to 'prepare' or pre-load their values, only in the druid */ @@ -2784,7 +2785,7 @@ emae_check_complete(EConfig *ec, const gchar *pageid, gpointer data) index = check_servers(at); gtk_entry_set_text(emae->priv->source.username, user); gtk_entry_set_text(emae->priv->transport.username, user); - if (uri && (url = camel_url_new(uri, NULL)) != NULL) { + if (!edit && uri && (url = camel_url_new(uri, NULL)) != NULL) { refresh = TRUE; camel_url_set_user (url, user); if (index != -1) { |