X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.c;h=4d4150e1006e5c9883121494af99cf3784ca115f;hb=9db7ae25d79b4deeac62b3a757be789ad9dad12b;hp=a7d1a5428322aa11503a484486f8c3685af7aecc;hpb=4128f78f5543bebc7cd1868736855207019f1f71;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index a7d1a54..4d4150e 100644 --- a/ui.c +++ b/ui.c @@ -59,7 +59,6 @@ bool can_resize = FALSE; WINDOW *top = NULL, *bottom = NULL; - static void init_windows() { @@ -538,7 +537,7 @@ void ui_print_database() { FILE *handle; - char *command = options_get_str("print_command"); + char *command = opt_get_str(STR_PRINT_COMMAND); int mode; if( list_is_empty() ) @@ -586,7 +585,7 @@ ui_open_datafile() return; } - if( options_get_int("autosave") ) + if( opt_get_bool(BOOL_AUTOSAVE) ) save_database(); else if(statusline_ask_boolean("Save current database", FALSE)) save_database();