path: root/ui/ncurses/nc-config.c
diff options
authorSamuel Mendoza-Jonas <>2016-07-13 16:43:22 +1000
committerSamuel Mendoza-Jonas <>2016-07-13 16:50:30 +1000
commit8ede209928e7bf7c06a11eee9c51a551193ba8e9 (patch)
treee862ff6c2515f1d6ae899e787a2915f4611ee4f6 /ui/ncurses/nc-config.c
parent96f9b8cd29dae248838d4221f3cb1c38e3aa1396 (diff)
ui/ncurses: Properly set focus when updating subset
When a subset widget is made empty focus is switched to the first visible field. It should actually be set to the first visible and active field, otherwise we can try to focus an un-selectable label. While we're here, also properly set the visibility for the autoboot enable/disable widget. Signed-off-by: Samuel Mendoza-Jonas <>
Diffstat (limited to 'ui/ncurses/nc-config.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c
index 24aac2b..10d7eb6 100644
--- a/ui/ncurses/nc-config.c
+++ b/ui/ncurses/nc-config.c
@@ -411,6 +411,7 @@ static void config_screen_layout_widgets(struct config_screen *screen)
widget_move(wl, y, screen->label_x);
wf = widget_select_base(screen->widgets.autoboot_f);
+ widget_set_visible(wf, true);
widget_move(wf, y, screen->field_x);
y += widget_height(wf);
OpenPOWER on IntegriCloud