g_object_unref (store_settings);
g_object_unref (transport_settings);
- hildon_banner_show_information(NULL, NULL, _("mcen_ib_advsetup_settings_saved"));
+ if (!self->save_password)
+ hildon_banner_show_information(NULL, NULL, _("mcen_ib_advsetup_settings_saved"));
}
} else {
hildon_banner_show_information (NULL, NULL, _("mail_ib_setting_failed"));
G_CALLBACK (on_response), self);
self->modified = FALSE;
+ self->save_password = FALSE;
/* When this window is shown, hibernation should not be possible,
* because there is no sensible way to save the state: */
}
+void
+modest_account_settings_dialog_save_password (ModestAccountSettingsDialog *dialog)
+{
+ g_return_if_fail (MODEST_IS_ACCOUNT_SETTINGS_DIALOG (dialog));
+
+ dialog->save_password = TRUE;
+}
+
+
static void
modest_account_settings_dialog_class_init (ModestAccountSettingsDialogClass *klass)
{
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));
ModestAccountSettings *settings;
gboolean modified;
+ gboolean save_password;
gchar * account_name; /* This may not change. It is not user visible. */
ModestTransportStoreProtocol incoming_protocol; /* This may not change. */
ModestTransportStoreProtocol outgoing_protocol; /* This may not change. */