diff options
author | Cyrill V. Gorcunov <gorcunov@gmail.com> | 2007-02-14 03:33:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:52 -0500 |
commit | ed8b4d4d7a31923db32f4684535944d69eb43677 (patch) | |
tree | ab3e7e360b2474e7452155ac57bb7fe32c98e1f5 /scripts/kconfig/qconf.cc | |
parent | 1f85712e6e1f2450ec4fd2ab18f8887bf7280f8e (diff) |
[PATCH] qconf: hide empty list items
This patch fixes showing empty config list items if "Option/Show All
Options" is turned on. For example empty items appears on list of 'Block
Layer' menu.
Signed-off-by: Cyrill V. Gorcunov <gorcunov@gmail.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Oleg Verych <olecom@flower.upol.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | scripts/kconfig/qconf.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 0981d2a2f36..512c2f5c341 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc | |||
@@ -606,6 +606,8 @@ void ConfigList::updateMenuList(P* parent, struct menu* menu) | |||
606 | 606 | ||
607 | visible = menu_is_visible(child); | 607 | visible = menu_is_visible(child); |
608 | if (showAll || visible) { | 608 | if (showAll || visible) { |
609 | if (!child->sym && !child->list && !child->prompt) | ||
610 | continue; | ||
609 | if (!item || item->menu != child) | 611 | if (!item || item->menu != child) |
610 | item = new ConfigItem(parent, last, child, visible); | 612 | item = new ConfigItem(parent, last, child, visible); |
611 | else | 613 | else |