From: Sergio Villar Senin Date: Mon, 19 May 2008 17:06:22 +0000 (+0000) Subject: * Fixes NB#84952, show the account dialog if the password is entered thrice wrongly X-Git-Tag: git_migration_finished~1364 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=df8e6ed5cab2050976ab78e14f5a03f9b8f7754a * Fixes NB#84952, show the account dialog if the password is entered thrice wrongly pmo-trunk-r4547 --- 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);