From c58087d5914322ab8f693729605a9508d67bb676 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 12 Jan 2016 18:29:26 +0100 Subject: Add command line option to suppress dialogs Implement a -q/--quiet command line option to disable system dialogs temporarily. Signed-off-by: Lukas Fleischer --- src/calcurse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index 3b7b7ff..72c8fe3 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -610,7 +610,7 @@ int main(int argc, char **argv) * implicitly calling wrefresh() later (causing ncurses race conditions). */ wins_wrefresh(win[KEY].p); - if (conf.system_dialogs) { + if (show_dialogs()) { wins_update(FLAG_ALL); io_startup_screen(no_data_file); } -- cgit v1.2.3-54-g00ecf