From: Sergio Villar Senin Date: Wed, 21 Jan 2009 15:08:06 +0000 (+0000) Subject: Alert user when there is a connection error, and only show the password dialog if... X-Git-Tag: git_migration_finished~748 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=eedfafbd33ed256e56b1071fb259922e15b40050 Alert user when there is a connection error, and only show the password dialog if it's an auth error pmo-trunk-r7219 --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 751b4f2..af2598f 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -1123,12 +1123,13 @@ modest_tny_account_store_alert (TnyAccountStore *self, if (error->code == TNY_SERVICE_ERROR_CERTIFICATE) retval = modest_platform_run_certificate_confirmation_dialog (server_name, error->message); - else if (error->code == TNY_SERVICE_ERROR_AUTHENTICATE) { + else if (error->code == TNY_SERVICE_ERROR_AUTHENTICATE || + error->code == TNY_SERVICE_ERROR_CONNECT) { + modest_platform_run_information_dialog (NULL, prompt, TRUE); /* Show the account dialog if it was wrong */ - if (error->code == TNY_SERVICE_ERROR_CONNECT || - error->code == TNY_SERVICE_ERROR_AUTHENTICATE) + if (error->code == TNY_SERVICE_ERROR_AUTHENTICATE) show_wrong_password_dialog (account); retval = TRUE;