aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r--calendar/gui/e-cal-model.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 3fda497431..19fb146d3e 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -242,6 +242,7 @@ e_cal_model_dispose (GObject *object)
}
priv->clients = NULL;
+ priv->default_client = NULL;
}
if (G_OBJECT_CLASS (e_cal_model_parent_class)->dispose)
@@ -1701,6 +1702,9 @@ remove_client (ECalModel *model, ECalModelClient *client_data)
return;
}
+ if (model->priv->default_client == client_data->client)
+ model->priv->default_client = NULL;
+
/* Remove the client from the list */
model->priv->clients = g_list_remove (model->priv->clients, client_data);