aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-10 08:42:36 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-10 08:42:36 +0800
commit92e1807bd758995edc6600856c3fb0a4ee546fdf (patch)
tree06f3d39619b04a79f3a63acd66a7d31fe1692176 /calendar/gui
parent9d58f78c420315685db6a2c04e53c5af892b7b9d (diff)
downloadgsoc2013-evolution-92e1807bd758995edc6600856c3fb0a4ee546fdf.tar.gz
gsoc2013-evolution-92e1807bd758995edc6600856c3fb0a4ee546fdf.tar.zst
gsoc2013-evolution-92e1807bd758995edc6600856c3fb0a4ee546fdf.zip
Bug 611727 - Date navigator marks dates for inactive calendars
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-cal-model.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 7533e56ece..1004d1b2a0 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -1573,12 +1573,19 @@ GList *
e_cal_model_get_client_list (ECalModel *model)
{
GList *list = NULL, *l;
+ ECal *default_client;
g_return_val_if_fail (E_IS_CAL_MODEL (model), NULL);
+ default_client = model->priv->default_client;
+
for (l = model->priv->clients; l != NULL; l = l->next) {
ECalModelClient *client_data = (ECalModelClient *) l->data;
+ /* Exclude the default client if we're not querying it. */
+ if (client_data->client == default_client && !client_data->do_query)
+ continue;
+
list = g_list_append (list, client_data->client);
}