* Fixes NB#86984, do not show authentication errors when the device disconnects
authorSergio Villar Senin <svillar@igalia.com>
Wed, 30 Jul 2008 17:26:07 +0000 (17:26 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 30 Jul 2008 17:26:07 +0000 (17:26 +0000)
pmo-diablo-r5220

src/modest-tny-account-store.c

index a92390a..2be005c 100644 (file)
@@ -572,7 +572,7 @@ get_password (TnyAccount *account, const gchar * prompt_not_used, gboolean *canc
        /* Get a reference to myself */
        self = MODEST_TNY_ACCOUNT_STORE (g_object_get_data (G_OBJECT(account), "account_store"));
        priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(self);
-
+       
        /* Ensure that we still have this account. It could happen
           that a set_online was requested *before* removing an
           account, and due to tinymail emits the get_password
@@ -1158,7 +1158,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);
-       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 */