From 55bbbaeface6212dba6246717b1347888e831ff4 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 23 Feb 2015 14:18:36 +0100 Subject: Redraw calendar panel when switching views Signed-off-by: Lukas Fleischer --- src/ui-calendar.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/ui-calendar.c b/src/ui-calendar.c index e3501a8..4539b86 100644 --- a/src/ui-calendar.c +++ b/src/ui-calendar.c @@ -87,6 +87,9 @@ void ui_calendar_view_next(void) ui_calendar_view++; if (ui_calendar_view == CAL_VIEWS) ui_calendar_view = 0; + + /* The calendar panel needs to be erased when switching views. */ + monthly_view_cache_month = 0; } void ui_calendar_view_prev(void) @@ -94,6 +97,9 @@ void ui_calendar_view_prev(void) if (ui_calendar_view == 0) ui_calendar_view = CAL_VIEWS; ui_calendar_view--; + + /* The calendar panel needs to be erased when switching views. */ + monthly_view_cache_month = 0; } void ui_calendar_set_view(int view) -- cgit v1.2.3-70-g09d2