summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-12 18:45:47 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-13 17:39:44 +0100
commit576784bca813a0c4eb7641f3bef59ae78ed12eec (patch)
tree5429c955070eabd01b22a049402f3edf2c3753d0
parent3eae7ce82869dd2c313496913bb94438dd0177a9 (diff)
downloadcalcurse-576784bca813a0c4eb7641f3bef59ae78ed12eec.zip
Hide import statistics in quiet mode
Do not show the import summary when system dialogs are disabled or when the --quiet option is specified, even if calcurse is executed in non-interactive mode. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index e72a29d..451f1c1 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1222,7 +1222,7 @@ void io_import_data(enum import_type type, const char *stream_name, int list)
mem_free(read);
mem_free(stat);
wgetch(win[KEY].p);
- } else if (ui_mode == UI_CMDLINE) {
+ } else if (ui_mode == UI_CMDLINE && show_dialogs()) {
printf(proc_report, stats.lines);
printf("\n%s / %s / %s / %s\n", stats_str[0], stats_str[1],
stats_str[2], stats_str[3]);