aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2004-08-11 18:07:12 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-08-11 18:07:12 +0800
commit30c16858428b700f5bbc8e140ca07329b83affd8 (patch)
treed8eed9df6d2fefd20ac6a15be9491ebc034e792d /calendar/gui
parentab11214a42e550169819b92f20d3cab4837c4704 (diff)
downloadgsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.tar
gsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.tar.gz
gsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.tar.bz2
gsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.tar.lz
gsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.tar.xz
gsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.tar.zst
gsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.zip
guard against re-running the same query.
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. svn path=/trunk/; revision=26868
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-cal-model.c3
1 files changed, 3 insertions, 0 deletions
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);