Fix save of interactively imported data
Adresses Github issue #249. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
b293b1829d
commit
4aae26e601
4
src/io.c
4
src/io.c
@ -1282,6 +1282,10 @@ void io_import_data(enum import_type type, const char *stream_name,
|
|||||||
if (stream != stdin)
|
if (stream != stdin)
|
||||||
file_close(stream, __FILE_POS__);
|
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),
|
asprintf(&stats_str[0], ngettext("%d app", "%d apps", stats.apoints),
|
||||||
stats.apoints);
|
stats.apoints);
|
||||||
asprintf(&stats_str[1],
|
asprintf(&stats_str[1],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user