[evolution-patches] [calendar] fix for bug #273796



Attached patch fixes bug # 273796
Please review.

Regards,
Dinesh Layek

Index: e-calendar-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-view.c,v
retrieving revision 1.91
diff -u -p -r1.91 e-calendar-view.c
--- e-calendar-view.c	24 Aug 2005 03:07:49 -0000	1.91
+++ e-calendar-view.c	22 Sep 2005 13:48:07 -0000
@@ -1591,8 +1591,12 @@ e_calendar_view_create_popup_menu (ECale
 	for (l=selected;l;l=g_list_next(l)) {
 		ECalendarViewEvent *event = l->data;
 
-		if (event)
+		if (event && event->comp_data)
 			g_ptr_array_add(events, e_cal_model_copy_component_data(event->comp_data));
+	}
+	if(selected && events->len == 0) {
+		g_list_free(selected);
+		return NULL;
 	}
 	g_list_free(selected);
 
Index: ../ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2804
diff -u -p -r1.2804 ChangeLog
--- ../ChangeLog	19 Sep 2005 08:10:51 -0000	1.2804
+++ ../ChangeLog	22 Sep 2005 13:48:09 -0000
@@ -1,3 +1,9 @@
+2005-09-22  Dinesh Layek <ldinesh novell com>
+
+	Fixes #273796
+	* gui/e-calendar-view.c
+	(e_calendar_view_create_popup_menu): checked selected events
+
 2005-09-08  P. S. Chakravarthi <pchakravarthi novell com>
 
 	Fix #261625


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