evolution r36862 - branches/gnome-2-24/widgets/misc



Author: mcrha
Date: Wed Dec 10 10:51:19 2008
New Revision: 36862
URL: http://svn.gnome.org/viewvc/evolution?rev=36862&view=rev

Log:
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.



Modified:
   branches/gnome-2-24/widgets/misc/ChangeLog
   branches/gnome-2-24/widgets/misc/e-attachment-bar.c

Modified: branches/gnome-2-24/widgets/misc/e-attachment-bar.c
==============================================================================
--- branches/gnome-2-24/widgets/misc/e-attachment-bar.c	(original)
+++ branches/gnome-2-24/widgets/misc/e-attachment-bar.c	Wed Dec 10 10:51:19 2008
@@ -1001,7 +1001,8 @@
 
 	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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]