[evolution-patches] Fix for bug 335214 Edit appointment causes evolution to crash.



hi, 

A patch's been attached for bug
http://bugzilla.gnome.org/show_bug.cgi?id=335214
appointment causes evolution to crash.

e_table_model_pre_change should be called before any changes take place.

Please review 

Thanks 

--Irene
Index: calendar/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.3013
diff -u -r1.3013 ChangeLog
--- calendar/ChangeLog	20 Mar 2006 06:19:42 -0000	1.3013
+++ calendar/ChangeLog	20 Mar 2006 13:43:31 -0000
@@ -1,3 +1,11 @@
+2006-03-20  Irene Huang <Irene Huang sun com> 
+
+	Fixes bug 335214
+
+	* gui/e-cal-model.c: (e_cal_view_objects_added_cb): 
+	Call e_table_model_pre_change (E_TABLE_MODEL (model)); before 
+	deleting row.
+
 2006-03-20  Boby Wang <boby wang sun com>
 
 	** Fix for bug #268584
Index: calendar/gui/e-cal-model.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-model.c,v
retrieving revision 1.71
diff -u -r1.71 e-cal-model.c
--- calendar/gui/e-cal-model.c	13 Mar 2006 05:34:08 -0000	1.71
+++ calendar/gui/e-cal-model.c	20 Mar 2006 13:43:31 -0000
@@ -1368,6 +1368,7 @@
 			int pos;
 
 			pos = get_position_in_array (priv->objects, comp_data);
+			e_table_model_pre_change (E_TABLE_MODEL (model));
 			e_table_model_row_deleted (E_TABLE_MODEL (model), pos);
 
  			if (g_ptr_array_remove (priv->objects, comp_data))


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