From a0383d484ba9b96208892ab0c4c788696bb2c551 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 10 Jul 2010 10:10:05 -0400 Subject: Bug 623702 - SEGV on redirecting message --- composer/e-msg-composer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'composer') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 998461a96a..791d151165 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1644,6 +1644,11 @@ msg_composer_realize_gtkhtml_cb (GtkWidget *widget, * it will accept the same drag targets as the attachment bar. * Do this any earlier and GtkHTML will just overwrite us. */ + /* When redirecting a message, the message body is not + * editable and therefore cannot be a drag destination. */ + if (!e_web_view_get_editable (E_WEB_VIEW (widget))) + return; + view = e_msg_composer_get_attachment_view (composer); target_list = e_attachment_view_get_target_list (view); -- cgit v1.2.3