* Fix bug on create_account wizard.
authorJavier Fernandez Garcia-Boente <jfernandez@igalia.com>
Tue, 29 May 2007 10:04:41 +0000 (10:04 +0000)
committerJavier Fernandez Garcia-Boente <jfernandez@igalia.com>
Tue, 29 May 2007 10:04:41 +0000 (10:04 +0000)
retrieve_type was not set when a new account
is created. I set 'Headers only' type as
default value.

pmo-trunk-r1984

src/maemo/easysetup/modest-easysetup-wizard.c

index 0578ec6..bf8279d 100644 (file)
@@ -1505,6 +1505,11 @@ create_account (ModestEasysetupWizardDialog *self, gboolean enabled)
        modest_account_mgr_set_string (self->account_manager, account_name,
                                       MODEST_ACCOUNT_DISPLAY_NAME, display_name, FALSE /* not server account */);
 
+       /* Set retrieve type */ 
+       const gchar *retrieve = MODEST_ACCOUNT_RETRIEVE_VALUE_HEADERS_ONLY;
+       modest_account_mgr_set_string (self->account_manager, account_name,
+               MODEST_ACCOUNT_RETRIEVE, retrieve, FALSE /* not server account */);
+
        /* Save the connection-specific SMTP server accounts. */
        gboolean result = TRUE;
        if (self->specific_window)