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.
This commit is contained in:
Milan Crha
2015-04-29 22:27:10 -04:00
committed by Erick Pérez Castellanos
parent 601f3c461e
commit b72de0c8b0
+6
View File
@@ -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)