[evolution] EHTMLEditorView - Try to convert the content only, when we load something
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Try to convert the content only, when we load something
- Date: Wed, 4 Feb 2015 16:20:35 +0000 (UTC)
commit 16b17109382fb7b99409ead4c961eeed96ce9c5a
Author: Tomas Popela <tpopela redhat com>
Date: Wed Feb 4 17:17:39 2015 +0100
EHTMLEditorView - Try to convert the content only, when we load something
e-util/e-html-editor-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 87211b5..8ee867b 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -8129,9 +8129,10 @@ e_html_editor_view_set_text_html (EHTMLEditorView *view,
}
if (view->priv->is_message_from_selection && !view->priv->html_mode) {
+ if (text && *text)
+ view->priv->convert_in_situ = TRUE;
webkit_web_view_load_string (
WEBKIT_WEB_VIEW (view), text, NULL, NULL, "file://");
- view->priv->convert_in_situ = TRUE;
return;
}
@@ -8145,9 +8146,10 @@ e_html_editor_view_set_text_html (EHTMLEditorView *view,
return;
}
}
+ if (text && *text)
+ view->priv->convert_in_situ = TRUE;
webkit_web_view_load_string (
WEBKIT_WEB_VIEW (view), text, NULL, NULL, "file://");
- view->priv->convert_in_situ = TRUE;
} else
webkit_web_view_load_string (
WEBKIT_WEB_VIEW (view), text, NULL, NULL, "file://");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]