From 30c16858428b700f5bbc8e140ca07329b83affd8 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 11 Aug 2004 10:07:12 +0000 Subject: guard against re-running the same query. 2004-08-10 Rodrigo Moya * gui/e-cal-model.c (e_cal_model_set_search_query): guard against re-running the same query. svn path=/trunk/; revision=26868 --- calendar/ChangeLog | 5 +++++ calendar/gui/e-cal-model.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 48820d50e9..46f91dec78 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2004-08-10 Rodrigo Moya + + * gui/e-cal-model.c (e_cal_model_set_search_query): guard against + re-running the same query. + 2004-08-10 Rodrigo Moya * gui/alarm-notify/alarm-queue.c (tray_icon_destroyed_cb): disconnect diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 64b8d6e328..c39db7dd66 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1807,6 +1807,9 @@ e_cal_model_set_search_query (ECalModel *model, const char *sexp) priv = model->priv; + if (!strcmp (sexp ? sexp : "", priv->search_sexp ? priv->search_sexp : "")) + return; + if (priv->search_sexp) g_free (priv->search_sexp); -- cgit v1.2.3