[evolution/wip/webkit2] EHTMLEditorview - Don't save history when undoing/redoing a paste of content
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorview - Don't save history when undoing/redoing a paste of content
- Date: Wed, 2 Mar 2016 17:55:04 +0000 (UTC)
commit fa2d7d47a3fd7e6eca181dcc80c362b690ea6625
Author: Tomas Popela <tpopela redhat com>
Date: Wed Mar 2 18:50:21 2016 +0100
EHTMLEditorview - Don't save history when undoing/redoing a paste of content
.../composer/e-html-editor-view-dom-functions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index 2cbbf32..78da63b 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -5300,7 +5300,7 @@ dom_convert_and_insert_html_into_selection (WebKitDOMDocument *document,
g_free (inner_html);
has_selection = !dom_selection_is_collapsed (document);
- if (has_selection) {
+ if (has_selection && !e_html_editor_undo_redo_manager_is_operation_in_progress (manager)) {
WebKitDOMRange *range;
range = dom_get_current_range (document);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]