* Reverted changes for bug 85454 since it adds another bugs
authorSergio Villar Senin <svillar@igalia.com>
Fri, 16 May 2008 16:04:50 +0000 (16:04 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 16 May 2008 16:04:50 +0000 (16:04 +0000)
pmo-trunk-r4542

src/maemo/modest-msg-edit-window.c

index 2cba7b2..dc93da1 100644 (file)
@@ -1219,17 +1219,9 @@ set_msg (ModestMsgEditWindow *self, TnyMsg *msg, gboolean preserve_is_rich)
 
        if (preserve_is_rich && !is_html) {
                wp_text_buffer_enable_rich_text (WP_TEXT_BUFFER (priv->text_buffer), FALSE);
-               /* We must do this here in order to reset the undo
-                  list, because otherwise this action could be
-                  reverted */
-               wp_text_buffer_reset_buffer (WP_TEXT_BUFFER (priv->text_buffer), FALSE);
        /* Get the default format required from configuration */
        } else if (!modest_conf_get_bool (modest_runtime_get_conf (), MODEST_CONF_PREFER_FORMATTED_TEXT, NULL)) {
                wp_text_buffer_enable_rich_text (WP_TEXT_BUFFER (priv->text_buffer), FALSE);
-               /* We must do this here in order to reset the undo
-                  list, because otherwise this action could be
-                  reverted */
-               wp_text_buffer_reset_buffer (WP_TEXT_BUFFER (priv->text_buffer), FALSE);
        }
 
        /* Set the default focus depending on having already a To: field or not */