aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
parentab11214a42e550169819b92f20d3cab4837c4704 (diff)
downloadgsoc2013-evolution-30c16858428b700f5bbc8e140ca07329b83affd8.tar.gz
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')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-cal-model.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 48820d50e9..46f91dec78 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,10 @@
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-10 Rodrigo Moya <rodrigo@novell.com>
+
* gui/alarm-notify/alarm-queue.c (tray_icon_destroyed_cb): disconnect
from signals also when using only the system tray. Fixes a crash when
removing an event that had an alarm popup recently.
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);