jana r746 - in trunk: . libjana-ecal



Author: rbradford
Date: Thu Mar 19 17:30:23 2009
New Revision: 746
URL: http://svn.gnome.org/viewvc/jana?rev=746&view=rev

Log:
2009-03-19  Rob Bradford  <rob linux intel com>

	* libjana-ecal/jana-ecal-task.c (task_get_due_date):
	Only get a due date if one is set.

Modified:
   trunk/ChangeLog
   trunk/libjana-ecal/jana-ecal-task.c

Modified: trunk/libjana-ecal/jana-ecal-task.c
==============================================================================
--- trunk/libjana-ecal/jana-ecal-task.c	(original)
+++ trunk/libjana-ecal/jana-ecal-task.c	Thu Mar 19 17:30:23 2009
@@ -201,12 +201,15 @@
 {
 	ECalComponent *comp;
 	ECalComponentDateTime etime;
-	JanaTime *time;
+	JanaTime *time = NULL;
 
 	g_object_get (self, "ecalcomp", &comp, NULL);
 	e_cal_component_get_due (comp, &etime);
-	time = jana_ecal_time_new_from_ecaltime (&etime);
-	e_cal_component_free_datetime (&etime);
+	if (etime.value)
+	{
+		time = jana_ecal_time_new_from_ecaltime (&etime);
+		e_cal_component_free_datetime (&etime);
+	}
 	g_object_unref (comp);
 
 	return time;



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