diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2019-02-02 18:21:08 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-02-02 18:21:08 +0100 |
commit | 5657e19e175da5abe101038ff6d8153dda9854a3 (patch) | |
tree | 766a7f708555ce73561fc5a908193a4ff16b0b6f | |
parent | 99c7493cd5272f257aba98efd7ff4aa7754e1936 (diff) | |
download | calcurse-5657e19e175da5abe101038ff6d8153dda9854a3.tar.gz calcurse-5657e19e175da5abe101038ff6d8153dda9854a3.zip |
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 <lfleischer@calcurse.org>
-rw-r--r-- | src/ui-day.c | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |