From 5657e19e175da5abe101038ff6d8153dda9854a3 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 2 Feb 2019 18:21:08 +0100 Subject: Invalidate calendar cache when adding an exception Removing an occurrence of a recurrent item can turn a busy day into a free day. Signed-off-by: Lukas Fleischer --- src/ui-day.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui-day.c b/src/ui-day.c index de8f8fa..626cf5a 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -725,7 +725,9 @@ void ui_day_item_delete(unsigned reg) &occurrence); day_item_add_exc(p, occurrence); } + io_set_modified(); + ui_calendar_monthly_view_cache_set_invalid(); return; default: return; @@ -736,8 +738,8 @@ void ui_day_item_delete(unsigned reg) p = day_cut_item(date, listbox_get_sel(&lb_apt)); day_cut[reg].type = p->type; day_cut[reg].item = p->item; - io_set_modified(); + io_set_modified(); ui_calendar_monthly_view_cache_set_invalid(); } -- cgit v1.2.3-70-g09d2