[evolution] EHTMLEditorView - Undo/Redo history is wrong after redoing UNQUOTE operation



commit 65621ebfddcf5f92f5e53105ecebae8e46eb880c
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Sep 11 13:50:34 2015 +0200

    EHTMLEditorView - Undo/Redo history is wrong after redoing UNQUOTE operation
    
    Only save history when we are not in the middle of undo/redo operation.

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index b0cf7c1..8d8a3d9 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3953,7 +3953,7 @@ change_quoted_block_to_normal (EHTMLEditorView *view)
                                        WEBKIT_DOM_NODE (block)));
        }
 
-       if (success) {
+       if (success && !view->priv->undo_redo_in_progress) {
                ev = g_new0 (EHTMLEditorViewHistoryEvent, 1);
                ev->type = HISTORY_UNQUOTE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]