summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill V. Gorcunov <gorcunov@gmail.com>2007-02-14 09:33:03 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-14 17:09:52 +0100
commited8b4d4d7a31923db32f4684535944d69eb43677 (patch)
treeab3e7e360b2474e7452155ac57bb7fe32c98e1f5
parent[PATCH] new toplevel target: headers_check_all (diff)
downloadlinux-ed8b4d4d7a31923db32f4684535944d69eb43677.tar.xz
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>
-rw-r--r--scripts/kconfig/qconf.cc2
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