From: Cyrill V. Gorcunov Date: Wed, 14 Feb 2007 08:33:03 +0000 (-0800) Subject: [PATCH] qconf: hide empty list items X-Git-Tag: v2.6.21-rc1~262 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ed8b4d4d7a31923db32f4684535944d69eb43677;p=linux-2.6-omap-h63xx.git [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 Cc: Roman Zippel Cc: Sam Ravnborg Cc: Oleg Verych Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) 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