aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-10 07:24:24 +0800
committerDan Winship <danw@src.gnome.org>2000-07-10 07:24:24 +0800
commit815c033842cd89c7116c844147470dba50019e29 (patch)
tree6ea19eba290284fa1cb06b8569c6e516d2d81d7b
parent7ffeca2735c0d928be4f5379de136e0606ccb652 (diff)
downloadgsoc2013-evolution-815c033842cd89c7116c844147470dba50019e29.tar
gsoc2013-evolution-815c033842cd89c7116c844147470dba50019e29.tar.gz
gsoc2013-evolution-815c033842cd89c7116c844147470dba50019e29.tar.bz2
gsoc2013-evolution-815c033842cd89c7116c844147470dba50019e29.tar.lz
gsoc2013-evolution-815c033842cd89c7116c844147470dba50019e29.tar.xz
gsoc2013-evolution-815c033842cd89c7116c844147470dba50019e29.tar.zst
gsoc2013-evolution-815c033842cd89c7116c844147470dba50019e29.zip
Don't load "" into the editor, because it will cause the editor component
* e-msg-composer.c (set_editor_text): Don't load "" into the editor, because it will cause the editor component to g_warning. svn path=/trunk/; revision=4026
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index adbd10f91c..e05826537e 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-09 Dan Winship <danw@helixcode.com>
+
+ * e-msg-composer.c (set_editor_text): Don't load "" into the
+ editor, because it will cause the editor component to g_warning.
+
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* e-msg-composer-hdrs.c: Removed the extra frame here.
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index bd675cae34..fdaece58b1 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -388,8 +388,11 @@ set_editor_text (BonoboWidget *editor, const char *text)
if (sig) {
fulltext = g_strdup_printf ("%s<BR>\n<PRE>\n--\n%s<PRE>",
text, sig);
- } else
+ } else {
+ if (!*text)
+ return;
fulltext = (char*)text;
+ }
CORBA_exception_init (&ev);
persist = (Bonobo_PersistStream)