From 4aae26e6013e141e94ea48454247922c0ff089ad Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Sat, 2 Nov 2019 08:10:50 +0100 Subject: Fix save of interactively imported data Adresses Github issue #249. Signed-off-by: Lukas Fleischer --- src/io.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/io.c b/src/io.c index a12ab7c..5c6d254 100644 --- a/src/io.c +++ b/src/io.c @@ -1282,6 +1282,10 @@ void io_import_data(enum import_type type, const char *stream_name, if (stream != stdin) file_close(stream, __FILE_POS__); + if (ui_mode == UI_CURSES && + (stats.apoints > 0 || stats.events > 0 || stats.todos > 0)) + io_set_modified(); + asprintf(&stats_str[0], ngettext("%d app", "%d apps", stats.apoints), stats.apoints); asprintf(&stats_str[1], -- cgit v1.2.3-70-g09d2