diff options
-rw-r--r-- | kconfig/menu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kconfig/menu.c b/kconfig/menu.c index 7ec25223..8cb7a573 100644 --- a/kconfig/menu.c +++ b/kconfig/menu.c @@ -285,6 +285,11 @@ void menu_finalize(struct menu *parent) } } } + if (parent->prompt && + !expr_is_yes(parent->prompt->visible.expr)) { + parent->visibility = expr_alloc_and (parent->visibility, + parent->prompt->visible.expr); + } /* set the type of the remaining choice values */ for (menu = parent->list; menu; menu = menu->next) { current_entry = menu; |