2007-06-13 Johannes Schmid <johannes.schmid@openismus.com>
authorJohannes Schmid <johannes.schmid@openismus.com>
Wed, 13 Jun 2007 15:01:04 +0000 (15:01 +0000)
committerJohannes Schmid <johannes.schmid@openismus.com>
Wed, 13 Jun 2007 15:01:04 +0000 (15:01 +0000)
* src/maemo/easysetup/modest-easysetup-wizard.c: (create_account):
Fixed projects.maemo.org bug NB# 58991

pmo-trunk-r2211

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

index c31fa8f..6728df4 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-13  Johannes Schmid <johannes.schmid@openismus.com>
+
+       * src/maemo/easysetup/modest-easysetup-wizard.c: (create_account):
+       Fixed projects.maemo.org bug NB# 58991
+
 2007-06-13  Murray Cumming  <murrayc@murrayc.com>
 
        * src/modest-init.c: (modest_init_init_core),
 2007-06-13  Murray Cumming  <murrayc@murrayc.com>
 
        * src/modest-init.c: (modest_init_init_core),
index 7dd5fdd..44761ca 100644 (file)
@@ -1399,10 +1399,8 @@ create_account (ModestEasysetupWizardDialog *self, gboolean enabled)
 
        /* Increment the non-user visible name if necessary, 
         * based on the display name: */
 
        /* Increment the non-user visible name if necessary, 
         * based on the display name: */
-       gchar *account_name_start = g_strdup_printf ("%sID", display_name);
        gchar* account_name = modest_account_mgr_get_unused_account_name (self->account_manager,
        gchar* account_name = modest_account_mgr_get_unused_account_name (self->account_manager,
-                                                                         account_name_start, FALSE /* not a server account */);
-       g_free (account_name_start);
+                                                                         display_name, FALSE /* not a server account */);
                
        /* username and password (for both incoming and outgoing): */
        const gchar* username = gtk_entry_get_text (GTK_ENTRY (self->entry_user_username));
                
        /* username and password (for both incoming and outgoing): */
        const gchar* username = gtk_entry_get_text (GTK_ENTRY (self->entry_user_username));