[evolution] Bug 771347 - Evolution's mail composer underlines my message even when spell checking is disabled



commit edb6656f20961aa7133cf10c083cbece3ddf7294
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Sep 13 10:54:43 2016 +0200

    Bug 771347 - Evolution's mail composer underlines my message even when spell checking is disabled
    
    When doing reply don't forgot to turn off spell checking if it is disabled.
    Also remove a code that was accidentally committed that was preventing the spell
    check to perform.

 .../web-extension/e-editor-dom-functions.c         |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c 
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 2fd63bf..faa0648 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -768,9 +768,6 @@ refresh_spell_check (EEditorPage *editor_page,
                "spellcheck",
                enable_spell_check ? "true" : "false",
                NULL);
-       webkit_dom_html_element_set_spellcheck (body, FALSE);
-       webkit_dom_html_element_set_spellcheck (body, enable_spell_check);
-       return;
 
        e_editor_dom_selection_save (editor_page);
 
@@ -8504,6 +8501,11 @@ e_editor_dom_process_content_after_load (EEditorPage *editor_page)
                e_editor_dom_register_input_event_listener_on_body (editor_page);
                register_html_events_handlers (editor_page, body);
 
+               if (e_editor_page_get_inline_spelling_enabled (editor_page))
+                       e_editor_dom_force_spell_check (editor_page);
+               else
+                       e_editor_dom_turn_spell_check_off (editor_page);
+
                return;
        }
 


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