diff -r 68cc5a0d3191 -r 3f3774e7e3b4 kconfig/menu.c --- a/kconfig/menu.c Sun May 08 15:12:55 2011 +0200 +++ b/kconfig/menu.c Mon May 09 20:15:39 2011 +0200 @@ -285,6 +285,11 @@ } } } + 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;