aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/cal-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/cal-backend.c')
-rw-r--r--calendar/pcs/cal-backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c
index 765d873f79..261466ebaa 100644
--- a/calendar/pcs/cal-backend.c
+++ b/calendar/pcs/cal-backend.c
@@ -1149,6 +1149,9 @@ idle_notify_categories_changed (gpointer data)
notify_categories_changed (backend);
g_hash_table_foreach_remove (priv->changed_categories, prune_changed_categories, NULL);
}
+
+ priv->category_idle_id = 0;
+
return FALSE;
}
@@ -1191,6 +1194,7 @@ cal_backend_ref_categories (CalBackend *backend, GSList *categories)
c = g_new (CalBackendCategory, 1);
c->name = g_strdup (name);
c->refcount = 1;
+ g_hash_table_insert (priv->categories, c->name, c);
g_hash_table_insert (priv->changed_categories, c->name, c);
}
}