evolution r36861 - trunk/widgets/misc



Author: mcrha
Date: Wed Dec 10 10:50:59 2008
New Revision: 36861
URL: http://svn.gnome.org/viewvc/evolution?rev=36861&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:
   trunk/widgets/misc/ChangeLog
   trunk/widgets/misc/e-attachment-bar.c

Modified: trunk/widgets/misc/e-attachment-bar.c
==============================================================================
--- trunk/widgets/misc/e-attachment-bar.c	(original)
+++ trunk/widgets/misc/e-attachment-bar.c	Wed Dec 10 10:50:59 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]