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 d2ae13f9dc..c794b18859 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -1400,6 +1400,10 @@ remove_client (ECalModel *model, ECalModelClient *client_data)
e_table_model_row_deleted (E_TABLE_MODEL (model), i);
}
}
+
+ /* If this was the default client, unset it */
+ if (model->priv->default_client == client_data->client)
+ model->priv->default_client = NULL;
/* free all remaining memory */
g_object_unref (client_data->client);