aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-15 03:17:36 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-15 03:17:36 +0800
commit7b220adafee34b86ef82d6130c7bc03c1bfd7adf (patch)
tree9860cc1ce9900bf15bb5fe837cdafc94669e52fb /calendar/gui/gnome-cal.c
parent51f9daed7077c6b7f616c92ee86459a02f63bc16 (diff)
downloadgsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar.gz
gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar.zst
gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.zip
Bug #593753 - Calendar search in list view doesn't work properly
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 4a8c5c4f68..90cf8ce47a 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1126,7 +1126,7 @@ gnome_calendar_set_search_query (GnomeCalendar *gcal,
g_free (priv->sexp);
priv->sexp = g_strdup (sexp);
- priv->lview_select_daten_range = range_search;
+ priv->lview_select_daten_range = !range_search;
start = start_range;
end = end_range;
@@ -1137,20 +1137,15 @@ gnome_calendar_set_search_query (GnomeCalendar *gcal,
i = priv->current_view_type;
/* Set the query on the views */
- if (i == GNOME_CAL_LIST_VIEW) {
- if (!priv->lview_select_daten_range) {
- e_cal_model_set_search_query_with_time_range (
- model, sexp, start, end);
- } else {
- start = priv->base_view_time;
- get_times_for_views (gcal, GNOME_CAL_LIST_VIEW, &start, &end, NULL);
+ if (i == GNOME_CAL_LIST_VIEW && !priv->lview_select_daten_range) {
+ start = priv->base_view_time;
+ get_times_for_views (gcal, GNOME_CAL_LIST_VIEW, &start, &end, NULL);
- e_cal_model_set_search_query_with_time_range (
- model, sexp, start, end);
+ e_cal_model_set_search_query_with_time_range (
+ model, sexp, start, end);
- if (priv->current_view_type == GNOME_CAL_LIST_VIEW)
- gnome_calendar_update_date_navigator (gcal);
- }
+ if (priv->current_view_type == GNOME_CAL_LIST_VIEW)
+ gnome_calendar_update_date_navigator (gcal);
} else
e_cal_model_set_search_query (model, sexp);