year-view: today button not working

Today button in the headerbar was not working when pressed in the
current year.

Button logic to update side panel was only triggered if there was a
change in the chosen year.

Fixed to update side panel whenever date is changed.

https://bugzilla.gnome.org/show_bug.cgi?id=762463
This commit is contained in:
Isaque Galdino
2016-03-02 01:06:52 -03:00
committed by Georges Basile Stavracas Neto
parent 10ef10b59a
commit 03b2ac9845
+1 -1
View File
@@ -151,7 +151,7 @@ static void
update_date (GcalYearView *year_view,
icaltimetype *new_date)
{
if (year_view->date != NULL && year_view->date->year != new_date->year && year_view->start_selected_date->day != 0)
if (year_view->date != NULL && icaltime_compare_date (year_view->date, new_date) && year_view->start_selected_date->day != 0)
reset_sidebar (year_view);
g_clear_pointer (&year_view->date, g_free);