From 815c033842cd89c7116c844147470dba50019e29 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 9 Jul 2000 23:24:24 +0000 Subject: 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 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 + + * 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 * 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
\n
\n--\n%s
",
 					    text, sig);
-	} else
+	} else {
+		if (!*text)
+			return;
 		fulltext = (char*)text;
+	}
 
 	CORBA_exception_init (&ev);
 	persist = (Bonobo_PersistStream)
-- 
cgit v1.2.3