[evolution] Only update the composer colors when the web extension is ready



commit 8afe361bf8f7108e8288d1780ce73e816fb92475
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Oct 5 12:40:17 2016 +0200

    Only update the composer colors when the web extension is ready
    
    This fixes warnings printed on the console.

 modules/webkit-editor/e-webkit-editor.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/webkit-editor/e-webkit-editor.c b/modules/webkit-editor/e-webkit-editor.c
index 7b116f8..b6c4f69 100644
--- a/modules/webkit-editor/e-webkit-editor.c
+++ b/modules/webkit-editor/e-webkit-editor.c
@@ -5483,13 +5483,13 @@ webkit_editor_load_changed_cb (EWebKitEditor *wk_editor,
 
        wk_editor->priv->reload_in_progress = FALSE;
 
-       if (webkit_editor_is_ready (E_CONTENT_EDITOR (wk_editor)))
+       if (webkit_editor_is_ready (E_CONTENT_EDITOR (wk_editor))) {
                e_content_editor_emit_load_finished (E_CONTENT_EDITOR (wk_editor));
-       else
+               webkit_editor_style_updated_cb (wk_editor);
+       } else
                wk_editor->priv->emit_load_finished_when_extension_is_ready = TRUE;
 
        dispatch_pending_operations (wk_editor);
-       webkit_editor_style_updated_cb (wk_editor);
 }
 
 static void


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