* Fixes NB#86112: do not show the account dialog if the alert is not an authenticati...
authorSergio Villar Senin <svillar@igalia.com>
Thu, 26 Jun 2008 08:10:10 +0000 (08:10 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 26 Jun 2008 08:10:10 +0000 (08:10 +0000)
pmo-trunk-r4784

src/modest-tny-account-store.c

index 264a7f6..78519e3 100644 (file)
@@ -1131,7 +1131,7 @@ 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);
        if (error->code == TNY_SERVICE_ERROR_CERTIFICATE)
                retval = modest_platform_run_certificate_confirmation_dialog (server_name,
                                                                              error->message);
-       else {
+       else if (error->code == TNY_SERVICE_ERROR_AUTHENTICATE) {
                modest_platform_run_information_dialog (NULL, prompt, TRUE);
 
                /* Show the account dialog if it was wrong */
                modest_platform_run_information_dialog (NULL, prompt, TRUE);
 
                /* Show the account dialog if it was wrong */
@@ -1142,6 +1142,7 @@ modest_tny_account_store_alert (TnyAccountStore *self,
                retval = TRUE;
        }
 
                retval = TRUE;
        }
 
+       g_debug ("%s: error code %d (%s", __FUNCTION__, error->code, error->message);
        
        if (prompt)
                g_free (prompt);
        
        if (prompt)
                g_free (prompt);