diff options
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 84b65439cd..90092a529a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2004-03-24 Rodrigo Moya <rodrigo@ximian.com> + + * gui/gnome-cal.c (update_query): don't create queries for the clients + that are not loaded yet. + 2004-03-24 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): remove debug code that diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 4b1bb840aa..0e46d0fb6e 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -649,6 +649,10 @@ update_query (GnomeCalendar *gcal) /* create queries for each loaded client */ for (l = priv->clients_list; l != NULL; l = l->next) { + /* don't create queries for clients not loaded yet */ + if (e_cal_get_load_state ((ECal *) l->data) != E_CAL_LOAD_LOADED) + continue; + if (!e_cal_get_query ((ECal *) l->data, real_sexp, &old_query, NULL)) { g_warning (G_STRLOC ": Could not create the query"); |