aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-12-10 18:51:19 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-12-10 18:51:19 +0800
commit9a7de17d1b3ed9214226977b64e73c5b4cbe00cc (patch)
tree02fec96f809cfcd7c1b2d2061b4c591229d0f661
parentc3c3df387e68a29b62036aca700e5a409b28afae (diff)
downloadgsoc2013-evolution-9a7de17d1b3ed9214226977b64e73c5b4cbe00cc.tar
gsoc2013-evolution-9a7de17d1b3ed9214226977b64e73c5b4cbe00cc.tar.gz
gsoc2013-evolution-9a7de17d1b3ed9214226977b64e73c5b4cbe00cc.tar.bz2
gsoc2013-evolution-9a7de17d1b3ed9214226977b64e73c5b4cbe00cc.tar.lz
gsoc2013-evolution-9a7de17d1b3ed9214226977b64e73c5b4cbe00cc.tar.xz
gsoc2013-evolution-9a7de17d1b3ed9214226977b64e73c5b4cbe00cc.tar.zst
gsoc2013-evolution-9a7de17d1b3ed9214226977b64e73c5b4cbe00cc.zip
** Fix for bug #556303
2008-12-10 Milan Crha <mcrha@redhat.com> ** Fix for bug #556303 * e-attachment-bar.c: (eab_icon_clicked_cb): Check whether attachment has a body already before accessing it. svn path=/branches/gnome-2-24/; revision=36862
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-attachment-bar.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 5e9f68ca23..ea2d8fda31 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-10 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #556303
+
+ * e-attachment-bar.c: (eab_icon_clicked_cb):
+ Check whether attachment has a body already before accessing it.
+
2008-10-29 Sankar P <psankar@novell.com>
License Changes
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index 1e41a95338..bdb6852e13 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -1001,7 +1001,8 @@ eab_icon_clicked_cb (EAttachmentBar *bar, GdkEvent *event, gpointer *dummy)
if (E_IS_ATTACHMENT_BAR (bar) && event->type == GDK_2BUTTON_PRESS) {
p = e_attachment_bar_get_selected (bar);
- if (p && p->next == NULL) {
+ /* check if has body already, remote files can take longer to fetch */
+ if (p && p->next == NULL && ((EAttachment *)p->data)->body) {
attachment = p->data;
/* Check if the file is stored already */