aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-03-20 01:03:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-03-20 01:03:27 +0800
commit192898d3d00155d9d338310e23cdb12a569788f4 (patch)
treeda8c9f7156466410c39fdf95b897fff4df18c33c /calendar/gui/e-cal-model.c
parent9ae0f1424515b21f952125b130cf4c841dac29f2 (diff)
downloadgsoc2013-evolution-192898d3d00155d9d338310e23cdb12a569788f4.tar
gsoc2013-evolution-192898d3d00155d9d338310e23cdb12a569788f4.tar.gz
gsoc2013-evolution-192898d3d00155d9d338310e23cdb12a569788f4.tar.bz2
gsoc2013-evolution-192898d3d00155d9d338310e23cdb12a569788f4.tar.lz
gsoc2013-evolution-192898d3d00155d9d338310e23cdb12a569788f4.tar.xz
gsoc2013-evolution-192898d3d00155d9d338310e23cdb12a569788f4.tar.zst
gsoc2013-evolution-192898d3d00155d9d338310e23cdb12a569788f4.zip
Fixes #55716
2004-03-19 JP Rosevear <jpr@ximian.com> Fixes #55716 * gui/e-cal-model.c (remove_client): unset the default if the client removed was the default svn path=/trunk/; revision=25132
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);