From 42a69015c27ea99cbca715330380b4b724c62a41 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 26 Mar 2004 21:08:33 +0000 Subject: guard against the case that we redo queries while still waiting for a 2004-03-26 JP Rosevear * gui/e-cal-model.c (update_e_cal_view_for_client): guard against the case that we redo queries while still waiting for a client to open svn path=/trunk/; revision=25205 --- calendar/gui/e-cal-model.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/gui/e-cal-model.c') diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 1e8acf3334..da375d00e9 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1309,6 +1309,10 @@ update_e_cal_view_for_client (ECalModel *model, ECalModelClient *client_data) priv = model->priv; + /* Skip if this client has not finished loading yet */ + if (e_cal_get_load_state (client_data->client) != E_CAL_LOAD_LOADED) + return; + /* free the previous query, if any */ if (client_data->query) { g_signal_handlers_disconnect_matched (client_data->query, G_SIGNAL_MATCH_DATA, -- cgit