diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-08-11 18:07:12 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-08-11 18:07:12 +0800 |
commit | 30c16858428b700f5bbc8e140ca07329b83affd8 (patch) | |
tree | d8eed9df6d2fefd20ac6a15be9491ebc034e792d /calendar | |
parent | ab11214a42e550169819b92f20d3cab4837c4704 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/e-cal-model.c | 3 |
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); |