X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-config.c;h=66ca7a45a63e35f4dd54dc7ad1307ffd9d5e35f9;hp=c0df762f155a236f0736fb577e09f99c7fa9a1e8;hb=27863350496534c1bdd6a2d48661f8973aed0945;hpb=aae41a6e324cb37c7af93ae8726110ff82728fa6 diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c index c0df762..66ca7a4 100644 --- a/ui/ncurses/nc-config.c +++ b/ui/ncurses/nc-config.c @@ -209,7 +209,7 @@ static int screen_process_form(struct config_screen *screen) screen->widgets.boot_order_f); autoboot = widget_select_get_value(screen->widgets.autoboot_f); - config->autoboot_enabled = autoboot || (autoboot && n_boot_opts); + config->autoboot_enabled = autoboot && n_boot_opts; config->n_autoboot_opts = n_boot_opts; config->autoboot_opts = talloc_array(config, struct autoboot_option, @@ -629,7 +629,6 @@ static void config_screen_autoboot_none(void *arg) struct nc_widget_subset *subset = screen->widgets.boot_order_f; widget_subset_clear_active(subset); - screen->autoboot_enabled = false; widgetset_unpost(screen->widgetset); config_screen_layout_widgets(screen);