aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-02-21 01:08:22 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-02-21 01:08:22 +0800
commit2dc419ef1712eeb6d2668a0366c50a8a3ff1f665 (patch)
treef5251b7b28b3675d29f8a0f4fce3ba83e52bd823 /calendar
parent6ca4d6b1083d4c982a4810d677c19afa5a88456f (diff)
downloadgsoc2013-evolution-2dc419ef1712eeb6d2668a0366c50a8a3ff1f665.tar.gz
gsoc2013-evolution-2dc419ef1712eeb6d2668a0366c50a8a3ff1f665.tar.zst
gsoc2013-evolution-2dc419ef1712eeb6d2668a0366c50a8a3ff1f665.zip
** Fix for bug #440426
2008-02-20 Milan Crha <mcrha@redhat.com> ** Fix for bug #440426 * gui/e-cal-model.c: (e_cal_model_dispose), (remove_client): Unset also default_client if removing it. svn path=/trunk/; revision=35065
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-cal-model.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index e57cd09a73..9b5796052c 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
2008-02-20 Milan Crha <mcrha@redhat.com>
+ ** Fix for bug #440426
+
+ * gui/e-cal-model.c: (e_cal_model_dispose), (remove_client):
+ Unset also default_client if removing it.
+
+2008-02-20 Milan Crha <mcrha@redhat.com>
+
** Part of fix for bug #515744
* gui/dialogs/comp-editor.c: (drop_action):
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);