[evolution/wip/webkit2] EWebKitEditor - Check whether is web extension is ready before using it



commit 1972574c09ae69a505ec52cac6e2035df45ac670
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Jul 26 14:57:24 2016 +0200

    EWebKitEditor - Check whether is web extension is ready before using it

 modules/webkit-editor/e-webkit-editor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/modules/webkit-editor/e-webkit-editor.c b/modules/webkit-editor/e-webkit-editor.c
index fd874ec..2a288c7 100644
--- a/modules/webkit-editor/e-webkit-editor.c
+++ b/modules/webkit-editor/e-webkit-editor.c
@@ -5596,6 +5596,9 @@ webkit_editor_clipboard_owner_change_cb (GtkClipboard *clipboard,
        if (!E_IS_WEBKIT_EDITOR (wk_editor))
                return;
 
+       if (!wk_editor->priv->web_extension)
+               return;
+
        if (wk_editor->priv->copy_cut_actions_triggered && event->owner)
                wk_editor->priv->copy_paste_clipboard_in_view = TRUE;
        else


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