[evolution/gnome-3-16] Misleading counts of events in the Calendar view's mini-calendar



commit 6cd4a050ed0863507cb7577cf2af8cea34ef004c
Author: Milan Crha <mcrha redhat com>
Date:   Tue Apr 28 19:21:03 2015 +0200

    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.

 calendar/gui/e-cal-data-model.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/e-cal-data-model.c b/calendar/gui/e-cal-data-model.c
index fd84f71..d013090 100644
--- a/calendar/gui/e-cal-data-model.c
+++ b/calendar/gui/e-cal-data-model.c
@@ -1676,6 +1676,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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]