diff options
author | Cyrill V. Gorcunov <gorcunov@gmail.com> | 2007-02-14 00:33:03 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 08:09:52 -0800 |
commit | ed8b4d4d7a31923db32f4684535944d69eb43677 (patch) | |
tree | ab3e7e360b2474e7452155ac57bb7fe32c98e1f5 /scripts/kconfig | |
parent | 1f85712e6e1f2450ec4fd2ab18f8887bf7280f8e (diff) | |
download | linux-ed8b4d4d7a31923db32f4684535944d69eb43677.tar.gz linux-ed8b4d4d7a31923db32f4684535944d69eb43677.tar.bz2 linux-ed8b4d4d7a31923db32f4684535944d69eb43677.zip |
[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')
-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 0981d2a2f363..512c2f5c341d 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -606,6 +606,8 @@ void ConfigList::updateMenuList(P* parent, struct menu* menu) visible = menu_is_visible(child); if (showAll || visible) { + if (!child->sym && !child->list && !child->prompt) + continue; if (!item || item->menu != child) item = new ConfigItem(parent, last, child, visible); else |