diff options
-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); |