From df8e6ed5cab2050976ab78e14f5a03f9b8f7754a Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 19 May 2008 17:06:22 +0000 Subject: [PATCH] * Fixes NB#84952, show the account dialog if the password is entered thrice wrongly pmo-trunk-r4547 --- src/modest-tny-account-store.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index a0fd3de..5c8ee35 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -1154,8 +1154,17 @@ 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 - retval = modest_platform_run_alert_dialog (prompt, question); + else { + 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) + show_wrong_password_dialog (account); + + retval = TRUE; + } + if (prompt) g_free (prompt); -- 1.7.9.5