* Fixes NB#99573, delete the account even though the account name was removed previously
authorSergio Villar Senin <svillar@igalia.com>
Wed, 28 Jan 2009 11:32:53 +0000 (11:32 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 28 Jan 2009 11:32:53 +0000 (11:32 +0000)
pmo-trunk-r7329

src/hildon2/modest-default-account-settings-dialog.c

index 4359cf9..5ace93e 100644 (file)
@@ -496,7 +496,10 @@ on_button_delete (GtkButton *button, gpointer user_data)
        self = MODEST_DEFAULT_ACCOUNT_SETTINGS_DIALOG (user_data);
        priv = MODEST_DEFAULT_ACCOUNT_SETTINGS_DIALOG_GET_PRIVATE (self);
 
        self = MODEST_DEFAULT_ACCOUNT_SETTINGS_DIALOG (user_data);
        priv = MODEST_DEFAULT_ACCOUNT_SETTINGS_DIALOG_GET_PRIVATE (self);
 
-       account_title = get_entered_account_title (self);
+       if (priv->modified)
+               account_title = g_strdup (priv->original_account_title);
+       else
+               account_title = get_entered_account_title (self);
 
        removed = modest_ui_actions_on_delete_account (GTK_WINDOW (self),
                                                       priv->account_name, 
 
        removed = modest_ui_actions_on_delete_account (GTK_WINDOW (self),
                                                       priv->account_name,