/* 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
priv->session = NULL;
}
+ camel_shutdown ();
+
G_OBJECT_CLASS(parent_class)->finalize (obj);
}
MODEST_PROTOCOL_TRANSPORT_STORE_UNKNOWN;
const gchar* server_name = "";
gchar *prompt = NULL;
- gboolean retval = TRUE;
+ gboolean retval;
/* NOTE: account may be NULL in some cases */
g_return_val_if_fail (error, FALSE);
if (error->code == TNY_SERVICE_ERROR_CERTIFICATE)
retval = modest_platform_run_certificate_confirmation_dialog (server_name,
error->message);
- else if (error->code == TNY_SERVICE_ERROR_AUTHENTICATE) {
+ else {
modest_platform_run_information_dialog (NULL, prompt, TRUE);
/* Show the account dialog if it was wrong */
retval = TRUE;
}
- g_debug ("%s: error code %d (%s", __FUNCTION__, error->code, error->message);
if (prompt)
g_free (prompt);
GtkWidget *
modest_tny_account_store_show_account_settings_dialog (ModestTnyAccountStore *self,
- const gchar *account_name)
+ const gchar *account_name)
{
ModestTnyAccountStorePrivate *priv;
gpointer dialog_as_gpointer = NULL;
GtkWidget *dialog;
dialog = (GtkWidget *) modest_account_settings_dialog_new ();
settings = modest_account_mgr_load_account_settings (priv->account_mgr, account_name);
+ modest_account_settings_dialog_save_password (MODEST_ACCOUNT_SETTINGS_DIALOG (dialog));
modest_account_settings_dialog_set_account (MODEST_ACCOUNT_SETTINGS_DIALOG (dialog), settings);
g_object_unref (settings);
modest_account_settings_dialog_switch_to_user_info (MODEST_ACCOUNT_SETTINGS_DIALOG (dialog));