[Evolution-hackers] Duplication of events/tasks



Found this when working on another bug.  Basically every time you made
something else the default source and then switched back it would re-
query and add the events for the source (without removing the previous
source).

-JP
-- 
JP Rosevear <jpr novell com>
Novell, Inc.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2463
diff -u -r1.2463 ChangeLog
--- ChangeLog	27 Jul 2004 02:29:11 -0000	1.2463
+++ ChangeLog	27 Jul 2004 17:15:43 -0000
@@ -1,3 +1,8 @@
+2004-07-27  JP Rosevear  <jpr novell com>
+
+	* gui/e-cal-model.c (add_new_client): don't load the events if we
+	are already doing the query
+
 2004-07-25  JP Rosevear  <jpr ximian com>
  
  	Fixes #61058
Index: gui/e-cal-model.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-model.c,v
retrieving revision 1.40
diff -u -r1.40 e-cal-model.c
--- gui/e-cal-model.c	24 Jul 2004 14:28:59 -0000	1.40
+++ gui/e-cal-model.c	27 Jul 2004 17:15:48 -0000
@@ -1467,7 +1467,9 @@
 	/* Look to see if we already have this client */
 	client_data = find_client_data (model, client);	
 	if (client_data) {
-		if (!client_data->do_query)
+		if (client_data->do_query)
+			return client_data;
+		else
 			client_data->do_query = do_query;
 		
 		goto load;


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