aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-03-25 03:56:41 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-03-25 03:56:41 +0800
commit9f004e15d508cd979852f0b31c421ee7bc87eb7b (patch)
treefaad92cfc9052ddc665b3344b3a2c27814999efb /calendar/gui
parenta5648ebc9f48d57a6d941f8161fa29ebcc9b091e (diff)
downloadgsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.tar.gz
gsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.tar.zst
gsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.zip
don't create queries for the clients that are not loaded yet.
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. svn path=/trunk/; revision=25171
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/gnome-cal.c4
1 files changed, 4 insertions, 0 deletions
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");