From: Cyrill V. Gorcunov Date: Wed, 14 Feb 2007 08:33:03 +0000 (-0800) Subject: [PATCH] qconf: hide empty list items X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ed8b4d4d7a31923db32f4684535944d69eb43677;p=mv-sheeva.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