aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-account-setup/exchange-account-setup.c
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-02-26 16:55:22 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-02-26 16:55:22 +0800
commite11218028d66a9281e7f02d385ba8fec42ca2e24 (patch)
tree1c5109e29522313ac36f83628d5e93162786368c /plugins/exchange-account-setup/exchange-account-setup.c
parentf21183f498a83acef583fec65dfa207a36bcc8cb (diff)
downloadgsoc2013-evolution-e11218028d66a9281e7f02d385ba8fec42ca2e24.tar
gsoc2013-evolution-e11218028d66a9281e7f02d385ba8fec42ca2e24.tar.gz
gsoc2013-evolution-e11218028d66a9281e7f02d385ba8fec42ca2e24.tar.bz2
gsoc2013-evolution-e11218028d66a9281e7f02d385ba8fec42ca2e24.tar.lz
gsoc2013-evolution-e11218028d66a9281e7f02d385ba8fec42ca2e24.tar.xz
gsoc2013-evolution-e11218028d66a9281e7f02d385ba8fec42ca2e24.tar.zst
gsoc2013-evolution-e11218028d66a9281e7f02d385ba8fec42ca2e24.zip
Added page check for receive page, so that one can proceed with the account
creation only after user is authenticated and hostname is set by validate(). svn path=/trunk/; revision=28893
Diffstat (limited to 'plugins/exchange-account-setup/exchange-account-setup.c')
-rw-r--r--plugins/exchange-account-setup/exchange-account-setup.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/exchange-account-setup/exchange-account-setup.c b/plugins/exchange-account-setup/exchange-account-setup.c
index 77fb6ea244..e5b1f03a55 100644
--- a/plugins/exchange-account-setup/exchange-account-setup.c
+++ b/plugins/exchange-account-setup/exchange-account-setup.c
@@ -375,7 +375,13 @@ org_gnome_exchange_check_options(EPlugin *epl, EConfigHookPageCheckData *data)
/* We assume that if the host is set, then the setting is valid.
The host gets set when the provider validate() call is made */
- if (data->pageid == NULL || strcmp(data->pageid, "20.receive_options") == 0) {
+ /* We do this check for receive page also, so that user can
+ * proceed with the account set up only after user is validated,
+ * and host name is reset by validate() call
+ */
+ if (data->pageid == NULL ||
+ strcmp (data->pageid, "10.receive") == 0 ||
+ strcmp (data->pageid, "20.receive_options") == 0) {
CamelURL *url;
url = camel_url_new(e_account_get_string(target->account, E_ACCOUNT_SOURCE_URL), NULL);