summaryrefslogtreecommitdiff
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-12 18:29:26 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-13 17:39:44 +0100
commitc58087d5914322ab8f693729605a9508d67bb676 (patch)
tree8a1c58b51ca6f05c24c99bfd73a8c41276385f9d /src/calcurse.c
parent6d9129764bebb775951c2c8629a291407c25a693 (diff)
downloadcalcurse-c58087d5914322ab8f693729605a9508d67bb676.zip
Add command line option to suppress dialogs
Implement a -q/--quiet command line option to disable system dialogs temporarily. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c2
1 files changed, 1 insertions, 1 deletions
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);
}