[evolution-patches] patch for e_cal_model_set_search_query (calendar)



This prevents the model to re-run the same query, as we do in
e_cal_model_set_time_range
-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2479
diff -u -p -r1.2479 ChangeLog
--- ChangeLog	9 Aug 2004 12:57:14 -0000	1.2479
+++ ChangeLog	10 Aug 2004 12:46:07 -0000
@@ -1,31 +1,36 @@
+2004-08-10  Rodrigo Moya <rodrigo novell com>
+
+	* gui/e-cal-model.c (e_cal_model_set_search_query): guard against
+	re-running the same query.
+
 2004-08-06  JP Rosevear  <jpr ximian com>
  
 	Fixes #62452
Index: gui/e-cal-model.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-model.c,v
retrieving revision 1.42
diff -u -p -r1.42 e-cal-model.c
--- gui/e-cal-model.c	2 Aug 2004 07:33:38 -0000	1.42
+++ gui/e-cal-model.c	10 Aug 2004 12:46:08 -0000
@@ -1807,6 +1807,9 @@ e_cal_model_set_search_query (ECalModel 
 
 	priv = model->priv;
 
+	if (!strcmp (sexp ? sexp : "", priv->search_sexp ? priv->search_sexp : ""))
+		return;
+
 	if (priv->search_sexp)
 		g_free (priv->search_sexp);
 


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