Alert user when there is a connection error, and only show the password dialog if...
authorSergio Villar Senin <svillar@igalia.com>
Wed, 21 Jan 2009 15:08:06 +0000 (15:08 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 21 Jan 2009 15:08:06 +0000 (15:08 +0000)
pmo-trunk-r7219

src/modest-tny-account-store.c

index 751b4f2..af2598f 100644 (file)
@@ -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;