* Fixes NB#85685, don't loose the HW focus when opening Modest from Contacts->Inbox...
[modest] / src / modest-account-mgr-helpers.c
index 33f88fe..1542e83 100644 (file)
@@ -284,8 +284,7 @@ modest_account_mgr_set_server_account_username (ModestAccountMgr *self, const gc
                
        /* We don't know anything about new usernames: */
        if (strcmp (existing_username, username) != 0)
-               modest_account_mgr_set_server_account_username_has_succeeded (self, account_name,
-                                                                             TRUE);
+               modest_account_mgr_set_server_account_username_has_succeeded (self, account_name, FALSE);
                
        g_free (existing_username);
 }
@@ -306,15 +305,6 @@ modest_account_mgr_set_server_account_username_has_succeeded (ModestAccountMgr *
                                     succeeded, TRUE /* server account */);
 }
 
-void
-modest_account_mgr_set_server_account_password (ModestAccountMgr *self, const gchar* account_name, 
-                                   const gchar* password)
-{
-       modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_PASSWORD, 
-                                      password, TRUE /* server account */);
-}
-
-       
 gchar*
 modest_account_mgr_get_server_account_password (ModestAccountMgr *self, const gchar* account_name)
 {
@@ -525,10 +515,6 @@ modest_account_mgr_save_server_settings (ModestAccountMgr *self,
                                                                           protocol, TRUE));
        }
 
-       if (!has_errors) {
-         modest_account_mgr_set_server_account_username_has_succeeded (self, account_name, FALSE);
-       }
-
        return !has_errors;
 
 }