From c5ee8ba98ba1de8845bf548ad365ac0b0859616d Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Tue, 8 Sep 2009 11:57:04 +0200 Subject: [PATCH 1/1] Do not show the account settings dialog if the password has been already asked and is not in our cache --- src/modest-tny-account-store.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index f216937..8f72052 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -689,13 +689,18 @@ get_password (TnyAccount *account, const gchar * prompt_not_used, gboolean *canc } if (settings_have_password) { - /* The password must be wrong, so show the account settings dialog so it can be corrected: */ - show_wrong_password_dialog (account, TRUE); + if (pwd) { + /* The password must be wrong, so show the account settings dialog so it can be corrected: */ + show_wrong_password_dialog (account, TRUE); - if (cancel) - *cancel = TRUE; + if (cancel) + *cancel = TRUE; - return NULL; + return NULL; + } else { + /* Get the password from the account settings */ + return modest_account_mgr_get_server_account_password (priv->account_mgr, server_account_name); + } } /* we don't have it yet. Get the password from the user */ -- 1.7.9.5