aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
parenta5648ebc9f48d57a6d941f8161fa29ebcc9b091e (diff)
downloadgsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.tar
gsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.tar.gz
gsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.tar.bz2
gsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.tar.lz
gsoc2013-evolution-9f004e15d508cd979852f0b31c421ee7bc87eb7b.tar.xz
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')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/gnome-cal.c4
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");