From 4cd62fb0fba6ddb5c79e3d2dc109b5b7d98612e2 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 29 Sep 2011 14:34:57 +0200 Subject: src/io.c: Update todo item count on iCal import Update the number of todo items when importing an iCal file to prevent some items from being inaccessible. Signed-off-by: Lukas Fleischer --- src/io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/io.c b/src/io.c index 12c9494..b64dd58 100644 --- a/src/io.c +++ b/src/io.c @@ -2780,6 +2780,9 @@ io_import_data (enum import_type type, struct conf *conf, char *stream_name) if (stream != stdin) file_close (stream, __FILE_POS__); + /* Update the number of todo items. */ + todo_set_nb (todo_nb () + stats.todos); + if (ui_mode == UI_CURSES && !conf->skip_system_dialogs) { char read[BUFSIZ], stat[BUFSIZ]; -- cgit v1.2.3-70-g09d2