aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-10 22:10:05 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-10 22:10:05 +0800
commita0383d484ba9b96208892ab0c4c788696bb2c551 (patch)
treeb72ed4a0b85bd868a1aa41939452db72d2eadc86 /composer
parentc07ab468d605431cfee94f5b5c4ce9e1875b8d85 (diff)
downloadgsoc2013-evolution-a0383d484ba9b96208892ab0c4c788696bb2c551.tar
gsoc2013-evolution-a0383d484ba9b96208892ab0c4c788696bb2c551.tar.gz
gsoc2013-evolution-a0383d484ba9b96208892ab0c4c788696bb2c551.tar.bz2
gsoc2013-evolution-a0383d484ba9b96208892ab0c4c788696bb2c551.tar.lz
gsoc2013-evolution-a0383d484ba9b96208892ab0c4c788696bb2c551.tar.xz
gsoc2013-evolution-a0383d484ba9b96208892ab0c4c788696bb2c551.tar.zst
gsoc2013-evolution-a0383d484ba9b96208892ab0c4c788696bb2c551.zip
Bug 623702 - SEGV on redirecting message
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c5
1 files changed, 5 insertions, 0 deletions
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);