evolution r35065 - in trunk/calendar: . gui



Author: mcrha
Date: Wed Feb 20 17:08:22 2008
New Revision: 35065
URL: http://svn.gnome.org/viewvc/evolution?rev=35065&view=rev

Log:
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.



Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/e-cal-model.c

Modified: trunk/calendar/gui/e-cal-model.c
==============================================================================
--- trunk/calendar/gui/e-cal-model.c	(original)
+++ trunk/calendar/gui/e-cal-model.c	Wed Feb 20 17:08:22 2008
@@ -242,6 +242,7 @@
 		}
 
 		priv->clients = NULL;
+		priv->default_client = NULL;
 	}
 
 	if (G_OBJECT_CLASS (e_cal_model_parent_class)->dispose)
@@ -1701,6 +1702,9 @@
 		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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]