[evolution] EHTMLEditorView - Don't crash when the paste button is pressed and the view is not focused
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Don't crash when the paste button is pressed and the view is not focused
- Date: Wed, 5 Nov 2014 10:54:30 +0000 (UTC)
commit ddf9e6183cbd6aed27407ff928ad9078e67c389c
Author: Tomas Popela <tpopela redhat com>
Date: Wed Nov 5 11:36:02 2014 +0100
EHTMLEditorView - Don't crash when the paste button is pressed and the view is not focused
e-util/e-html-editor-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 31006c6..314e4cb 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1806,6 +1806,9 @@ body_input_event_cb (WebKitDOMElement *element,
e_html_editor_view_set_changed (view, TRUE);
key_event = view->priv->key_event;
+ if (!key_event)
+ return;
+
if (view->priv->magic_smileys && view->priv->html_mode)
html_editor_view_check_magic_smileys (view, range);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]