mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
kconfig: fix choice multi-display
In case a choices has different combinations, it can be displayed more than once. See the discussion thread on the linux-kbuild ML: http://www.spinics.net/lists/linux-kbuild/msg04709.html The fix applied here was proposed by Arnaud LACOMBE. That fix, or a similar one, will probably be pushed upstream soon. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
3796ca5885
commit
bb27382f3b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user