Fix for bug 335214 Edit appointment causes evolution to crash.

Irene Huang <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
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

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
335214-evo-edit-appointment-critical-crash.diff (text/x-patch, 1.2 KB)
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 <[email protected]> 
+
+	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 <[email protected]>
 
 	** 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))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.