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;