[evolution/wip/webkit2] EHTMLEditorView - When the content is converted set the editor as changed



commit e4ad0540d35d1a5985c8737328fc585c12775899
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Jun 30 11:50:59 2016 +0200

    EHTMLEditorView - When the content is converted set the editor as changed

 modules/webkit-editor/e-webkit-editor.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/modules/webkit-editor/e-webkit-editor.c b/modules/webkit-editor/e-webkit-editor.c
index 02783f6..e6f90b0 100644
--- a/modules/webkit-editor/e-webkit-editor.c
+++ b/modules/webkit-editor/e-webkit-editor.c
@@ -240,7 +240,7 @@ webkit_editor_get_changed (EWebKitEditor *wk_editor)
 
 static void
 webkit_editor_set_changed (EWebKitEditor *wk_editor,
-                                   gboolean changed)
+                           gboolean changed)
 {
        g_return_if_fail (E_IS_WEBKIT_EDITOR (wk_editor));
 
@@ -1255,10 +1255,13 @@ webkit_editor_set_html_mode (EWebKitEditor *wk_editor,
 
        /* If toggling from HTML to the plain text mode, ask the user first if
         * he wants to convert the content. */
-       if (convert)
+       if (convert) {
                if (!show_lose_formatting_dialog (wk_editor))
                        return;
 
+               webkit_editor_set_changed (wk_editor, TRUE);
+       }
+
        wk_editor->priv->html_mode = html_mode;
 
        g_dbus_proxy_call (


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