From 58f6ac62aaf38b0122e304a09c2a589743a7e215 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <calcurse@cryptocrack.de>
Date: Fri, 18 Jul 2014 08:40:45 +0200
Subject: Do not display dialog on periodic save
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 src/io.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src')

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);
 	}
-- 
cgit v1.2.3-70-g09d2