aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-table.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-11-26 22:15:17 +0800
committerMilan Crha <mcrha@redhat.com>2009-11-26 22:15:17 +0800
commite2ca6f7753443a37fddd9d3af8360a9da06c4a9f (patch)
tree5ce60fca7c86b19ee23cd8cb4e6a3ed950aeaefc /calendar/gui/e-calendar-table.c
parentdae1d43302906876882c153c40a0e7d45f66023d (diff)
downloadgsoc2013-evolution-e2ca6f7753443a37fddd9d3af8360a9da06c4a9f.tar
gsoc2013-evolution-e2ca6f7753443a37fddd9d3af8360a9da06c4a9f.tar.gz
gsoc2013-evolution-e2ca6f7753443a37fddd9d3af8360a9da06c4a9f.tar.bz2
gsoc2013-evolution-e2ca6f7753443a37fddd9d3af8360a9da06c4a9f.tar.lz
gsoc2013-evolution-e2ca6f7753443a37fddd9d3af8360a9da06c4a9f.tar.xz
gsoc2013-evolution-e2ca6f7753443a37fddd9d3af8360a9da06c4a9f.tar.zst
gsoc2013-evolution-e2ca6f7753443a37fddd9d3af8360a9da06c4a9f.zip
Bug #591330 - Do not clear task preview every minute
Diffstat (limited to 'calendar/gui/e-calendar-table.c')
-rw-r--r--calendar/gui/e-calendar-table.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c
index 2b11da0582..3dd4d7435b 100644
--- a/calendar/gui/e-calendar-table.c
+++ b/calendar/gui/e-calendar-table.c
@@ -1462,6 +1462,7 @@ hide_completed_rows (ECalModel *model, GList *clients_list, gchar *hide_sexp, GP
GList *l, *m, *objects;
ECal *client;
gint pos;
+ gboolean changed = FALSE;
for (l = clients_list; l != NULL; l = l->next) {
client = l->data;
@@ -1484,6 +1485,7 @@ hide_completed_rows (ECalModel *model, GList *clients_list, gchar *hide_sexp, GP
e_table_model_pre_change (E_TABLE_MODEL (model));
pos = get_position_in_array (comp_objects, comp_data);
e_table_model_row_deleted (E_TABLE_MODEL (model), pos);
+ changed = TRUE;
if (g_ptr_array_remove (comp_objects, comp_data))
e_cal_model_free_component_data (comp_data);
@@ -1494,7 +1496,9 @@ hide_completed_rows (ECalModel *model, GList *clients_list, gchar *hide_sexp, GP
g_list_foreach (objects, (GFunc) icalcomponent_free, NULL);
g_list_free (objects);
+ }
+ if (changed) {
/* to notify about changes, because in call of row_deleted there are still all events */
e_table_model_changed (E_TABLE_MODEL (model));
}