diff options
author | Milan Crha <mcrha@redhat.com> | 2008-12-10 18:50:59 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-12-10 18:50:59 +0800 |
commit | 8977778ec47a4c415884fe210e258716aa011879 (patch) | |
tree | e62c09cfca219b1b18426754a05e257e1ff96ffb /widgets/misc/e-attachment-bar.c | |
parent | 415b951b22cd467afadf1866c53ef5c1caa5eacb (diff) | |
download | gsoc2013-evolution-8977778ec47a4c415884fe210e258716aa011879.tar gsoc2013-evolution-8977778ec47a4c415884fe210e258716aa011879.tar.gz gsoc2013-evolution-8977778ec47a4c415884fe210e258716aa011879.tar.bz2 gsoc2013-evolution-8977778ec47a4c415884fe210e258716aa011879.tar.lz gsoc2013-evolution-8977778ec47a4c415884fe210e258716aa011879.tar.xz gsoc2013-evolution-8977778ec47a4c415884fe210e258716aa011879.tar.zst gsoc2013-evolution-8977778ec47a4c415884fe210e258716aa011879.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=/trunk/; revision=36861
Diffstat (limited to 'widgets/misc/e-attachment-bar.c')
-rw-r--r-- | widgets/misc/e-attachment-bar.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |