[evolution-patches] fix for the bug 300432 [calendar]



Hi,
  Have attached the fix for the bug. This bug happens if EDS has
restarted and so the client is not in a loaded state. We should open the
editor only if the client has been loaded.

thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2714
diff -u -p -r1.2714 ChangeLog
--- ChangeLog	18 Apr 2005 14:32:16 -0000	1.2714
+++ ChangeLog	21 Apr 2005 09:08:01 -0000
@@ -1,3 +1,9 @@
+2005-04-21  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #300432
+	* gui/e-calendar-view.c: (e_calendar_view_edit_appointment): Check whether
+	is the client has been loaded before opening the appointment editor.
+
 2005-04-18  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes #274476
Index: gui/e-calendar-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-view.c,v
retrieving revision 1.79
diff -u -p -r1.79 e-calendar-view.c
--- gui/e-calendar-view.c	18 Apr 2005 14:21:33 -0000	1.79
+++ gui/e-calendar-view.c	21 Apr 2005 09:08:02 -0000
@@ -1637,6 +1637,11 @@ e_calendar_view_edit_appointment (ECalen
 
 	priv = cal_view->priv;
 
+	if (e_cal_get_load_state (client) != E_CAL_LOAD_LOADED) {
+		g_warning (G_STRLOC ": The client is not loaded");
+		return;
+	}
+
 	uid = icalcomponent_get_uid (icalcomp);
 
 	ce = e_comp_editor_registry_find (comp_editor_registry, uid);


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