diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2019-11-02 08:10:50 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-11-03 10:56:47 -0500 |
commit | 4aae26e6013e141e94ea48454247922c0ff089ad (patch) | |
tree | 224bb8772eb7608df10f44623809d0576ad0b9b7 /src | |
parent | b293b1829d1380ad04c69510559d44fe300eb501 (diff) | |
download | calcurse-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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], |