From b72de0c8b0f0b955a08eb323efce6011d8e5697c Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 28 Apr 2015 19:21:03 +0200 Subject: [PATCH] Misleading counts of events in the Calendar view's mini-calendar It was caused by missing view events remove notifications when replacing ongoing ECalClientView. The previously known (ViewData::lost_components) were not notified as removed, thus made incorrect counts in the mini-calendar. --- src/e-cal-data-model.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/e-cal-data-model.c b/src/e-cal-data-model.c index 785b56d8..7e421faa 100644 --- a/src/e-cal-data-model.c +++ b/src/e-cal-data-model.c @@ -1705,6 +1705,12 @@ cal_data_model_remove_client_view (ECalDataModel *data_model, cal_data_model_notify_remove_components_cb, &nrc_data); g_hash_table_remove_all (view_data->components); + if (view_data->lost_components) { + g_hash_table_foreach (view_data->lost_components, + cal_data_model_notify_remove_components_cb, &nrc_data); + g_hash_table_remove_all (view_data->lost_components); + } + cal_data_model_thaw_all_subscribers (data_model); if (view_data->view)