aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui-calendar.c6
1 files changed, 6 insertions, 0 deletions
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)