summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-18 08:40:45 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-18 08:41:45 +0200
commit58f6ac62aaf38b0122e304a09c2a589743a7e215 (patch)
tree0d6494e7704901c3f8bca928dab448727c5fd654
parentd0916ced78738053da54aeb65a48b6d7d2483107 (diff)
downloadcalcurse-58f6ac62aaf38b0122e304a09c2a589743a7e215.tar.gz
calcurse-58f6ac62aaf38b0122e304a09c2a589743a7e215.zip
Do not display dialog on periodic save
When periodic save is enabled, do not print the "The data files were successfully saved" dialog every time io_save_cal() is called. Reported-by: HÃ¥kan Jerning <jerning@home.se> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 116a362..ba20610 100644
--- a/src/io.c
+++ b/src/io.c
@@ -445,7 +445,8 @@ void io_save_cal(enum save_display display)
io_unset_modified();
/* Print a message telling data were saved */
- if (ui_mode == UI_CURSES && conf.system_dialogs) {
+ if (ui_mode == UI_CURSES && display == IO_SAVE_DISPLAY_BAR &&
+ conf.system_dialogs) {
status_mesg(save_success, enter);
wgetch(win[KEY].p);
}