summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2019-11-02 08:10:50 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2019-11-03 10:56:47 -0500
commit4aae26e6013e141e94ea48454247922c0ff089ad (patch)
tree224bb8772eb7608df10f44623809d0576ad0b9b7 /src
parentb293b1829d1380ad04c69510559d44fe300eb501 (diff)
downloadcalcurse-4aae26e6013e141e94ea48454247922c0ff089ad.tar.gz
calcurse-4aae26e6013e141e94ea48454247922c0ff089ad.zip
Fix save of interactively imported data
Adresses Github issue #249. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r--src/io.c4
1 files changed, 4 insertions, 0 deletions
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],